Forum Moderators: open

Message Too Old, No Replies

refreshing another page?

can I refresh the page that launched me?

         

meingallsphp

12:07 am on Mar 27, 2007 (gmt 0)

10+ Year Member



I have a page that displays the status of a reservation. From this page, I can click on a link that opens a new browser (<a target="_blank"). In the new browser window, I can change the status of the reservation. When I close the new browser window and am back in the original page, the status is now incorrect.

Is there a way to force the "parent" window to refresh before I close the child window?

I tried

<a onclick="javascript: window.parent.history(); window.close();"><img src="images/okay.gif"></a>

but this did not refresh the parent window.

Any suggestions?

Thanks,
Mel

ericjust

12:46 am on Mar 27, 2007 (gmt 0)

10+ Year Member



You don't need the "javascript:" on an onclick; you need it on an href.

Try this:

<a href="#" onclick="window.parent.location.reload(true);window.close();"><img src="images/okay.gif"></a>

I think window.opener.location.reload(true) should work as well?