Académique Documents
Professionnel Documents
Culture Documents
=============
jsp page
--------
<portlet:actionURL name="testAction" var="testURL" windowState="<%=Lifer
ayWindowState.EXCLUSIVE.toString() %>">
</portlet:actionURL>
<% String popupScript=renderResponse.getNamespace() + "callPopup('"+testURL.toSt
ring()+"')"; %>
<a href="javascript:void(0)" onclick="<%=popupScript %>" > Click Here </
a>
script:
------
<aui:script>
Liferay.provide(
window,
'<portlet:namespace />callPopup',
function(url1) {
var A = AUI();
var data = {};
});
}
</aui:script>
=========================================
popup html content use some parameter;
====================================
function Popup1(flightDetails,flightDetails1,flightDetails2,flightDetails3){
AUI().ready('aui-dialog', 'aui-overlay-manager', 'dd-constrain', function(A)
{
var dialog = new A.Dialog({
title: 'Flight Details',
centered: true,
modal: true,
width: 500,
height: 400,
bodyContent: '<form name="form1"><table><tr class="portlet-section-b
ody results-row"><td>Flight Number :</td><td>'+flightDetails+'</td></tr><tr clas
s="portlet-section-body results-row"><td>Departure Time :</td><td>'+flightDetail
s1+'</td></tr><tr class="portlet-section-body results-row"><td>Arrival Time :</t
d><td>'+flightDetails2+'</td></tr><tr class="portlet-section-body results-row"><
td>Number of Stops :</td><td>'+flightDetails3+'</td></tr></table></form>'
}).render();
});
}