Waiting for a Popup Window to Close

A

Al Clare

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
 
U

usman

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
 
A

Al Clare

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top