470,618 Members | 1,887 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,618 developers. It's quick & easy.

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
Jul 20 '05 #1
2 7139


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!
Jul 20 '05 #2
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 <an*******@developersdex.com> wrote in message news:<40***********************@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!

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

38 posts views Thread by Shaun McKinnon | last post: by
7 posts views Thread by E Michael Brandt | last post: by
4 posts views Thread by VR | last post: by
13 posts views Thread by ldan | last post: by
5 posts views Thread by Hemanth | last post: by
2 posts views Thread by jackson2005 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.