OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Forced refresh

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Forced refresh
Page: [1]
 
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.

_____________________________




(in reply to stu)
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.

(in reply to Giomanach)
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)

_____________________________




(in reply to stu)
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?

(in reply to Giomanach)
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

(in reply to stu)
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 ;)

_____________________________




(in reply to stu)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Forced refresh
Page: [1]
Jump to: 1





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