Click to See Complete Forum and Search --> : how to refresh a window


devmode
05-13-2004, 01:53 PM
Is it possible to refresh/reload or by any means manipulate a window by name? I have an issue where the end of a chain of popups needs to reload the main window when data is changed in that popup.

If one of the popups in the chain is closed then I can not just go up the window.opener hierarchy, because the chain is broken. So I was wondering if it was possible to reload a window by name or if at all possible to somehow go to the top of the hierarchy bypassing the closed popup.

Make sense?
Main window > popup1 > popup2
If popup1 is closed and then data is manipulated in popup2 it needs to update the main window .. but can't because while window.opener is valid (since the object is not actually destroyed) .. it is not really a window object any more and does not itself have an opener... which is what I need in order to get back to the main to manipulate it.

kimmeke
05-13-2004, 01:55 PM
<meta http-equiv="refresh" content="0;url=javascript:history.go(-1)">

this refreshes an html page :)

devmode
05-13-2004, 02:01 PM
I'm not looking for how to refresh an html page - the question is how do you refresh a window from the end of a chain of popups when one of the popups in the chain has been closed out.

kimmeke
05-13-2004, 02:05 PM
This shows how to have the page auto-load the current page at a given interval.
The interval choosen is 10 seconds.

===============================================================
<html>
<head>
<!--
This file retrieved from the JS-Examples archives
http://www.js-x.com
1000s of free ready to use scripts, tutorials, forums.
Author: JS-Examples - http://www.js-examples.com/
-->

<script type=text/javascript>
// The time out value is set to be 10,000 milli-seconds (or 10 seconds)
setTimeout('document.location=document.location',10000);
</script>


</head>
<body>
<BR><center><a href='http://www.js-x.com'>JS-X.com</a></center>
</body>
</html>

===============================================================
Maybe that!!

devmode
05-13-2004, 02:07 PM
I'm sorry - thanks for your help and all, but maybe you aren't reading the question...

And if you don't know then you don't know.

kimmeke
05-13-2004, 02:10 PM
sorry