parent page, a user clicks a link and a new window is opened so that
they can maintain some values. When the user is finished, they can
click either a save or a cancel button. If the user clicks the save
button, I want the parent page to be refreshed and then the child
window to close. I have this working perfectly in FF2 but it does not
in IE. In IE, the parent page is refreshed but when it refreshes, the
screen that comes back is the same screen as the child window. When
the child window should close, it instead is being refreshed and comes
back as a blank screen.
Does anybody have any ideas as to how I can make this work in IE 7?
>From the parent page, here is the hyperlink that opens the popupwindow:
<a href="#" onClick="clickAdvEdit('someData');>Advanced Edit...</a>
and funciton clickAdvEdit ultimately does this:
var lUrl = /somepage/index.html
var opt =
"toolbar=0,location=0,directories=0,status=0,menub ar=0,scrollbars=1,resizable=1,width="
+ screen.availWidth + ",height=" + screen.availHeight;
window.open(lUrl ,"", opt, false);
>From the save button of the child page:<button type="button" class="primary"
onClick="showChanges();">Save</button>
and the function showChanges is defined as this:
function showChanges() {
if (typeof window.opener.ctgMaintClick=="function") {
window.opener.ctgMaintClick();
window.close();
}
}
Any ideas or suggestions would be appreciated.
Pete