Click to See Complete Forum and Search --> : refresh parent browser from a popup
hazza
09-28-2003, 06:08 PM
I am opening a popup and in that popup i have a form which is updating a database. when the form is submitted i want to close the popup and refresh the parent window.
I can get it all working but am stuck on how to refresh the parent.
any ideas?
thanks in advance
hazza
parent.location.reload(true);
Or...
opener.location.reload(true);
[J]ona
hazza
09-28-2003, 07:02 PM
sweet as jona
that worked a treat
:)
<script language="JavaScript" type="text/JavaScript">
<!--
window.opener.location.reload(true);
window.close();
//-->
</script>
have a good onme
-tom
You're welcome. :)
[J]ona
mistafeesh
09-29-2003, 09:48 AM
I've been trying to do something similar, but I can't get it to work.
I think it's because the popup contains a multi-page dialogue, rather that just one page.
either that or (also very possible) I'm inept when it comes to javascript!
here's what the link on the page says:<a href="javascript:window.opener.location.reload(true); window.close()">
it closes the window OK, but doesn't refresh the parent
any ideas?
<a href="#" onclick="opener.location.reload(true); window.close();">
[J]ona
mistafeesh
09-29-2003, 05:10 PM
thanks! what a relief to have that working!:D
You're welcome. :)
[J]ona