Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I don't know wheather I should post this in a HTML newsgroup or in a ASP
one.So excuse me for posting in both.
I have written some code using ASP.
When I use F5 and <meta httpd-equiv="refresh" content="1"> the result is not
the same.
Is there any difference between the two?

Thnx in advance

Re: Refresh

John wrote:
Quoted text here. Click to load it

ok - crossposting would be better than multi-posting

Quoted text here. Click to load it

What is F5 in this context?  refresh browser?

neither are ASP issues though.

William Tasso -

Re: Refresh

Quoted text here. Click to load it

The problem with the meta refresh is that it does not work always. I ran
into that problem a while ago with PHP programming. I wanted my browser
window to refresh every time it opened, but the meta tag just wasn't good
enough. In particular when using the "Back" button of the browser - the
window would stay the same.

I found this really great tip on how to do it with PHP - not quite sure
whether you can achieve the same with ASP - it is header functions. You send
a raw HTTP header that forces the browser to refresh every time. It worked
for all browsers I could test except for Safari on the Mac.

Hope this helps.

Re: Refresh

Quoted text here. Click to load it

I have never experienced anything like that. I can almost certainly say
that the Location header is supported in Safari.

kristiaan@xs4all.netherlands (nl)

Re: Refresh

Quoted text here. Click to load it

Hmmm... The header location works, but the header expires doesn't work in
Safari when I use the Back button of the browser. I'll show you what I mean:

if you go to you will see a Flash menu at
the top. Click onto Company>Management. You will see that the Flash menu
remains highlighted to show the user the section he is in. Now go to
Portfolio>Case Study. If you now use the Back button to go back to
Company>Management, you will notice that the Flash menu highlights the wrong
section. This is because Safari does not reload the page (the Flash menu is
driven by the PHP).

Strange, but it only causes problems in Safari. If you know a solution,
would be great to hear (sorry to the guys who come here for HTML, rather
than PHP). This is the code I use at the moment to force refresh:

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
 // always modified
 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
 // HTTP/1.1
 header("Cache-Control: no-store, no-cache, must-revalidate");
 header("Cache-Control: post-check=0, pre-check=0", false);
 // HTTP/1.0
 header("Pragma: no-cache");

Re: Refresh

Fredo Vincentis wrote:

Quoted text here. Click to load it

You can't force a browser to do anything, as you discovered with Safari
(and Konqueror too, I'm guessing).

Site Timeline