Close and Refresh Parent
Question:
Is it possible to close the advanced popup window on the submission of a form, and have the page it was called from refresh, to display the results just submitted?
Answer:
1. Make a RedirectChildWindow.htm file containing:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset="iso"-8859-1">
<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
window.opener.progressWindow.close();
window.close();
}
//-->
</script>
</head>
<body onload="refreshParent()">
</body>
</html>
2. Put this file in the popup window as a redirect at your Insert/Update record SB
Thats it!
Comments
Absolutely Wizard
Fantastic..........
Exactly what I was after..........Cheers Matt
refreshing page
I hate doing this in case I am totally wrong and look stupid :P
But shoudn't that be onUnload rather than onLoad?
That's what worked for me using something similar.
Doesn't refresh...
I used this code, and it does close the window, but the parent doesn't refresh... I just copied it exactly as it is in your post... Any idea what I could be doing wrong? I'm using IE6, BTW...
Thanks George!
Eddie Appell
refreshing page
YOU ROCK!!!
This is what I needed
THANKS!!!
You must me logged in to write a comment.