Thread View: fj.lang.javascript
3 messages
3 total messages
Started by Lee Wexler
Wed, 19 Nov 1997 00:00
Force browser to refresh in script?
Author: Lee Wexler
Date: Wed, 19 Nov 1997 00:00
Date: Wed, 19 Nov 1997 00:00
20 lines
1645 bytes
1645 bytes
Hi: I have an ASP application in which the data on a given page is largely static throughout the day and the page should be read from the local cache..... ...except once in a great while, when the user changes something in the database, I want my local script to force explorer to go get a *fresh* copy of the page from the server. Anyway to delete a specific page from the cache? Or anyway to force the browser to browse a given page (in specific circumstantces!) *without* looking at the cache? thanks in advance for your help...... -Lee Wexler
Re: Force browser to refresh in script?
Author: Manohar Kamath
Date: Wed, 19 Nov 1997 00:00
Date: Wed, 19 Nov 1997 00:00
21 lines
1533 bytes
1533 bytes
Do something like this in your HTML code:
<BODY ... onLoad("document.location = self.location")>
That should do it. Please look into the exact syntax in one of the
JavaScript references.
Also doing a Response.Expires = 0 helps, but I have seen that it doesnot
work correctly on IE 4.0
Good luck !
Manohar Kamath
--
------------------------------------------
Manohar Kamath
mkamath@niu.edu
Homepages:
www.cs.niu.edu/~z951259
msfp.teklink.com/mkamath
------------------------------------------
Re: Force browser to refresh in script?
Author: Daniel Pratte
Date: Thu, 20 Nov 1997 00:00
Date: Thu, 20 Nov 1997 00:00
35 lines
1973 bytes
1973 bytes
Manohar Kamath wrote:
>
> Do something like this in your HTML code:
> <BODY ... onLoad("document.location = self.location")>
>
> That should do it. Please look into the exact syntax in one of the
> JavaScript references.
>
> Also doing a Response.Expires = 0 helps, but I have seen that it doesnot
> work correctly on IE 4.0
>
> Good luck !
>
> Manohar Kamath
> --
> ------------------------------------------
> Manohar Kamath
> mkamath@niu.edu
> Homepages:
> www.cs.niu.edu/~z951259
> msfp.teklink.com/mkamath
> ------------------------------------------
I didn't know that about IE 4.0 and Expires = 0. I wonder if setting an
absolute expires date, in the past, would work? eg Expires = "Fri, 28
Aug 1971 00:00:00 GMT" .
--
Daniel A. Pratte
MCPS
Anchorage (Louisville) , KY USA
dpratte@worldnet.att.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads