File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Opening a Child Window, send URL back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening a Child Window, send URL back" Watch "Opening a Child Window, send URL back" New topic
Author

Opening a Child Window, send URL back

Andy Pearlman
Greenhorn

Joined: Dec 21, 2005
Posts: 2
I've been trying to figure out how to do this, but with no luck. I want to do the following:
Open a Child Window. This window will call an swf file that will let the user make various selections and then click on a button in Flash. I'm reasonably certain I can make this work if I know the 2nd part...

What I want to happen is that when someone clicks on that button, it switches back to the parent window and calls a new URL based on their selections. And without closing the child window.

Can anyone help?

Thanks in advance,

Andy
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
window.opener.focus();
window.opener.location.href = "asdf";

problem is that if you change the url of the parent, it looses connection with the child window.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Opening a Child Window, send URL back