我有一个弹出窗口,显示与其相同的页面。我已将其重定向到另一个jsp,但它没有显示jsp页面,而是在jsp中显示相同的jsap页面.Below是代码。提前致谢
以下所有代码均在view.jsp
中 <portlet:defineObjects />
<script type="text/javascript">
var dialog2
function Popupdisplay1(url,flr){
alert(url);
AUI().use('aui-dialog', 'aui-io', function(A) {
alert("reached here inside popup");
dialog2 = new A.Dialog({
align:Liferay.Util.Window.ALIGN_CENTER,
title: 'My PopUp',
centered: true,
modal: true,
width: 550,
height: 400,
id: 'alert',
draggable: false,
resizable: false,
}).plug(A.Plugin.IO, {uri: url}).render();
});
}
</script>
<portlet:renderURL var="contractURL" windowState=<%=LiferayWindowState.EXCLUSIVE.toString()%>">
<portlet:param name="jspPage" value="" />
</portlet:renderURL>
<td><input class="notify" type="button" value="Notify"onclick="Popupdisplay1('<%=contractURL.toString()%>')"></td>