Help with accessing a pre-existing window AFTER opener is refreshed!

Posted by Wilhelm Murdoch on Stack Overflow See other posts from Stack Overflow or by Wilhelm Murdoch
Published on 2010-03-31T04:15:06Z Indexed on 2010/03/31 4:23 UTC
Read the original article Hit count: 271

Filed under:
|
|

Alright, I'm at my wit's end on this issue.

First, backstory. I'm working on a video management system where we're allowing users, when adding new content, to upload and, optionally, transcode a media file. We're using Java applet for the browser-based FTP client.

What I want to do is allow a user to initiate an upload and then send the FTP connection instance to a popup window. This window will act as a job queue for the FTP transfer process. This will allow users to move about the main interface without having to stay on the original page until an individual file transfer is complete.

For the most part I have all of this working, but here's a problem. If the window is closed, all connections are dropped and the upload process for all queued files will be canceled.

So, if Window One opens the Popup Window, adds stuff to the queue, refreshes the screen or moves to a different page, how will I access the Popup Window?

The popup window and its contents must remain persistent while the user navigates through the original window. The original window must be able to access the popup to add a new job to the queue. The popup window itself is independent of the opening window, so communication only happens in one direction:

Parent -> Popup

Not

Parent <- Popup

Window.open(null, 'WINDOW_NAME'); will not work in this case. I need to check if a window exists BEFORE using window.open.

Help!?!?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom