Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Communication between 2 windows (not parent/child) 1

Status
Not open for further replies.

jrotondo

Technical User
Joined
Mar 21, 2005
Messages
2
Location
US
Here's my situation. I have a "main page" that uses an iframe in it. The iframe page has a link in it that opens another window via javascript popup. I then allow the user to do some database interaction within the popup. What I wanted to happen, is that after the database interaction is done, the window closes and the main page reloads to reflect the data changes. Within the popup, I used:

window.opener.location.reload();
window.close();

The problem here is, the opener is the iframe, not the main page, so only the iframe updates. How can I get the popup window to talk with the main page and get it to reload without it having a parent/child relationship with it?

Any help would be greatly appreciated.
 
This one worked:

window.opener.parent.location.reload();

Many thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top