[FX.php List] [OFF] Reload whole page from AJAX div?
Joel Shapiro
jsfmp at earthlink.net
Tue Mar 11 09:52:54 MDT 2008
Hi all
I've got a page that reloads divs via AJAX (links within a div reload
that same div).
I want to have the *whole page* reload (not just the div) if the
session has timed out, however I can't figure out how to do this.
If I use
header('Location: page.php');
then page.php reloads only in that div
I can use Javascript in a link in the div that will reload the whole
page, e.g.:
<a href="#" onclick="location.replace('page.php')">click</a>
but I'd like this to be automated, so clicking a link in a div that
would normally reload just that div will instead reload the whole
page whenever the session has timed out.
I've tried:
<script language="javascript">
<!--
location.replace("page.php");
-->
</script>
but that didn't work (even though I was able to get it to work in
another simpler situation).
Any suggestions?
TIA,
-Joel
More information about the FX.php_List
mailing list