Here is a simple example that I has a while ago. It looks you have an
extra ";" in your onPopupDone attribute. Also, I don't believe we have a
way to specify the popup location that is relative to the browser
window. I hope this is helpful to you.
Julie
******************************
<netui:html>
<head>
<title>Page Flow popupFunc Test</title>
<netui:base/>
</head>
<netui:body>
<h3>${pageFlow.URI}</h3>
<br/>
anchor: launch popup with the default onPopupDone funtion
<netui:anchor action="goNested" popup="true">
<netui:configurePopup width="500" height="500"/>
goNested in popup
</netui:anchor>
<br/>
anchor: launch popup with a custom onPopupDone function
<netui:anchor action="goNested" popup="true">
<netui:configurePopup width="500" height="500"
onPopupDone="myPopupDoneFunc"/>
goNested in popup
</netui:anchor>
<br/>
<p id="javaOut"></p>
<netui:scriptBlock placement="before">
function myPopupDoneFunc()
{
var p = document.getElementById("javaOut");
var val = "<b>Done function called succesfully!</b><br/>";
p.innerHTML = val;
}
</netui:scriptBlock>
</netui:body>
</netui:html>
-----Original Message-----
From: Adam Jenkins [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 01, 2005 2:54 PM
To: Beehive Users
Subject: popup onPopupDone example
Hi All,
Congrats on making it out of the incubator...well done.
Does anyone have an example of using onPopupDone in
netui:configurePopup. I can't get the following to refresh the page
when the popup closes:
<netui:imageAnchor border="0" style="float:right"
src="${pageContext.request.contextPath}/${bundle.app.newRequestButton}"
styleClass="imagebutton" action="addNew" popup="true">
<netui:configurePopup width="300" height="300" left="100"
top="100"
resizable="false" onPopupDone="window.location.reload( true );"/>
</netui:imageAnchor>${bundle.app.certificateRequestsLabel}
Also...is there any way to center a popup in the middle of the browser?
Cheers
Adam