|
| |
|
|
stu
Posts: 142 From: doylestown,pa Status: offline
|
Forced refresh - 5/17/2009 10:49:01
Is there some code that would go in the <head> section that would force a browser to refresh? I have a site that changes often and a number of users don't realize that they need to refresh their browser.
|
|
|
|
Giomanach
Posts: 6187 Joined: 11/19/2003 From: England Status: offline
|
RE: Forced refresh - 5/17/2009 10:58:28
What server technologies do you have available to you? I would try to avoid using JavaScript for this, as some users do disable it.
_____________________________
|
|
|
|
stu
Posts: 142 From: doylestown,pa Status: offline
|
RE: Forced refresh - 5/17/2009 11:05:00
Other than html and java script, I use some asp code. I understand that some people disable javascript, but I'm willing to live with this if the code is easy and it works.
|
|
|
|
Giomanach
Posts: 6187 Joined: 11/19/2003 From: England Status: offline
|
RE: Forced refresh - 5/17/2009 11:10:19
Use: <%
Response.AddHeader "Refresh", "10"
%> But you will have to re-label the pages as .asp rather than .htm(l)
_____________________________
|
|
|
|
stu
Posts: 142 From: doylestown,pa Status: offline
|
RE: Forced refresh - 5/17/2009 11:27:54
Thanks Giomanach. Thanks for the reminder about changing the extension to asp; I would have blown that. Also, I assume that "10" refers to 10 seconds and can be changed. Will "0" work?
|
|
|
|
jurgen
Posts: 424 Joined: 1/9/2007 From: Castle Rock, Colorado Status: offline
|
RE: Forced refresh - 5/17/2009 12:22:57
You can use refresh in the meta tag <meta http-equiv="refresh" content="600"> read more here
|
|
|
|
Giomanach
Posts: 6187 Joined: 11/19/2003 From: England Status: offline
|
RE: Forced refresh - 5/17/2009 12:55:17
quote:
ORIGINAL: stu Thanks Giomanach. Thanks for the reminder about changing the extension to asp; I would have blown that. Also, I assume that "10" refers to 10 seconds and can be changed. Will "0" work? You don't want to do a 0 as that will constantly refresh the page - and yes it refers to seconds. quote:
ORIGINAL: jurgen You can use refresh in the meta tag <meta http-equiv="refresh" content="600"> read more here I would try to avoid using those kind of meta tags, they have been known to cause more problems than they are worth ;)
_____________________________
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|