|
|
Waiting for a Popup Window to Close
Hello,
I am currently having problems with Popup windows in an application I
am writing. I have a page, which opens a Popup window to a Perl Script
on another server.
Because of this, I cant access the Parent's DOM to execute a function
on the main page from the popup. I need to execute a script in the
Main window once the popup window has finished its process.
I have tried setting a loop that checks if the popup is still open,
which should work in principle.... however it hangs both Browser
Windows.
Any one have any ideas how I can get around this problem?
Many thanks,
Alistair
|
|
0
|
|
|
|
Reply
|
alistairclare
|
1/22/2004 11:45:28 PM |
|
hi,
Write a function for 'onbeforeclose' event in the popup.
and in this function call the function on the parent page
using window.parent.functionname to do the desired work on popup
closing.
I think it is applicable for IE only
Hope it works
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
|
0
|
|
|
|
Reply
|
usman
|
1/23/2004 5:59:11 AM
|
|
Hi,
I have tried that... the problem is that they are both on 2 different
servers. The parent page opens up the popup pointing at the other
server. This means that the popup dosn't have permissions to access
the parent windows DOM. I just get Access Denied.
This is why I need the parent window to wait for the popup window to
close, or to check if it is still open every second.... and then run a
script.
Thanks,
Alistair
usman <anonymous@developersdex.com> wrote in message news:<4010b82f$0$70308$75868355@news.frii.net>...
> hi,
> Write a function for 'onbeforeclose' event in the popup.
> and in this function call the function on the parent page
> using window.parent.functionname to do the desired work on popup
> closing.
> I think it is applicable for IE only
>
> Hope it works
>
> thanks
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
|
|
0
|
|
|
|
Reply
|
alistairclare
|
1/23/2004 10:22:30 AM
|
|
|
2 Replies
536 Views
(page loaded in 0.03 seconds)
|
|
|
|
|
|
|
|
|