Not tested but it sshould be something like this
top.Windows.getWindow('modal_window').setURL(your_url);
On Feb 21, 2007, at 5:59 PM, Adam Alexander wrote:
Hello. I'm new to PWC, and trying to figure something out, but
while I understand the existing API online documentation, I can't
find usage examples, and thus am running into issues. For instance,
I've opened a new modal window:
function openModal()
{
var win = new Window('modal_window', {className: "modalWin",
title: "", url: "mywin.php", width:345, height:300})
win.showCenter();
win.setDestroyOnClose();
win.show(true);
}
mywin.php has two buttons, one for closing the modal window, one to
replace the the current modal's url with another url.
I was eventually able to figure out that the JS to close the modal
window is parent.Windows.closeAll(). This was not obvious from the
documentation, but I got it. (Is there a more appropriate way to do
this?)
However, I cannot figure out the second task, replacing the current
url with another. I figure if I can successfully call getURL, then
setURL will work. From within mywin.php, I've tried alerting:
getURL()
parent.getURL()
top.getURL()
Window.getURL()
parent.Window.getURL()
top.Window.getURL()
Windows.getURL()
parent.Windows.getURL()
top.Windows.getURL()
But none of those work. Help!
~ Adam
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com