This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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

Opening a Child Window, send URL back

Andy Pearlman

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,

Eric Pascarello

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

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

I agree. Here's the link:
subject: Opening a Child Window, send URL back
Similar Threads
How to persist data of child window form
Closing the child window should trigger some action in Parent window.
error in passing values from child window to parent window
Opening a Child Window, send URL back
data from Child window to parent window