I have one page which has a back-dated expiry - prompting the browser to reload from the server each time
it's accessed.
From that page I have a mechanism to determine which other pages have changed since the user last visited
them.
I then generate links for each page, and where the page is known to have changed I stick ?R at the end.
For example: <A href="mychangedpage.html?R">Changed</A> for a changed page and <A
href="mynotchangedpage.html">Not Changed</A> for one which is known not to have changed.
On each page I can then check the search string and force a reload of the page from the server:
See what I mean (get ready to press the 'back button as you'll get alert following alert in NS):
The link to the page:
<HTML><head></head><body>
<A href="reload.html?R">Page needing reloading</A>
</body></HTML>
The page 'reload.html'
<HTML><HEAD><TITLE>Reload Once?</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (location.search.substr(1)=="R" {
alert("reloading"
location.search= "";
self.location.reload(true);
}
//-->
</SCRIPT></HEAD><BODY>I want to be reloaded once</BODY></HTML>
Please help!
Stephen
it's accessed.
From that page I have a mechanism to determine which other pages have changed since the user last visited
them.
I then generate links for each page, and where the page is known to have changed I stick ?R at the end.
For example: <A href="mychangedpage.html?R">Changed</A> for a changed page and <A
href="mynotchangedpage.html">Not Changed</A> for one which is known not to have changed.
On each page I can then check the search string and force a reload of the page from the server:
See what I mean (get ready to press the 'back button as you'll get alert following alert in NS):
The link to the page:
<HTML><head></head><body>
<A href="reload.html?R">Page needing reloading</A>
</body></HTML>
The page 'reload.html'
<HTML><HEAD><TITLE>Reload Once?</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
if (location.search.substr(1)=="R" {
alert("reloading"
location.search= "";
self.location.reload(true);
}
//-->
</SCRIPT></HEAD><BODY>I want to be reloaded once</BODY></HTML>
Please help!
Stephen