Click to See Complete Forum and Search --> : problems with frames and popups


caws1111
05-18-2003, 06:54 AM
I have a problem with closing a window and then populating it with another file from a framed window.

I have a parent window that opens a child, called "child". the child then opens a a popup window called "myGrandChild". In my pop up window I have a framed site with navigation that goes linear in one of the named frames (for example buttons called "next" and "previous" in the frame called "content"). On the last page of the "content" frame I want to close the framed popup and target the opener window "myGrandChild" and also change the HTML file in that window.

this is the code I am using but it does not work..it closes "myGrandChild" but does not trigger the action of populating the opening window "child" with the file I want.... any suggestions :confused:

function closeGrandChild() {
if (myGrandChild) {
self.opener.document.location = newURL;
self.close()
}
}

link code as follows
<a href="javascript:closeGrandChild('newfile.htm')">Next</a>

khalidali63
05-18-2003, 07:15 AM
use
top.opener.window.location.href = url