Reply
WANTED: script to auto refresh visitors browser
Old 10-17-2002, 11:58 AM WANTED: script to auto refresh visitors browser
lawford's Avatar
Experienced Talker

Posts: 45
Location: Saskatoon, Saskatchewan, Canada
Hello all,

Does anyone know a simple script I can insert into my pages that will make the visitor's browser refresh when it ht the page so that updates are always displayed?

Thanks in advance for your help!
__________________
Thanks,

Rory: www.lawfordmedia.com
lawford is offline
Reply With Quote
View Public Profile Visit lawford's homepage!
 
When You Register, These Ads Go Away!
     
Old 10-17-2002, 12:27 PM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Accidental Techie
Posts: 3,566
Location: in a distant land far away from reality
1 u can add a meta tag to refresh ur page.

but that will not be useful as it will refresh the page every xz seconds

2 . when they come to ur page, u assign a cookie and next time they come check that and accordingly display the page..

u will find scripts. at www.hotscripts.com
__________________
Praveen
Web Tools - Smilies - Celebs - Bookmarks - Indian Food - Create a Poll

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Old 10-17-2002, 01:12 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
In case you're wondering, the code for a META refresh is:
Code:
<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.pagelocation.com/thepage.html">
Where 10 is the number of seconds and the URL can be changed to whatever page you want to load. If you set a page to reload to itself, it will do this continuously (many sports sites do this to keep scores up to date).
__________________
Free Webmaster Help - Everything a webmaster needs - for free
Free-Webhosting.info - Free web hosts reviewed and rated
Web Hosting Hunt - Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile Visit david's homepage!
 
Old 10-17-2002, 01:30 PM
AhmedF's Avatar
Left for Better Places

Posts: 258
If you are actually talking about caching, and using PHP, use the following:

Code:
	header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'); 	//IE6 Cookies
    header("Expires: Sun 10 Feb 1983 05:00:00 GMT");                     // Date in the past
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");        // always modified
	header("Cache-Control: no-store, no-cache, must-revalidate");  // HTTP/1.1
	header("Cache-Control: post-check=0, pre-check=0", false);
	header("Pragma: no-cache");                          // HTTP/1.0
This will also even let you place cookies on the default settings of IE6
AhmedF is offline
Reply With Quote
View Public Profile
 
Old 10-17-2002, 01:32 PM
lawford's Avatar
Experienced Talker

Posts: 45
Location: Saskatoon, Saskatchewan, Canada
Thanks guys!!!!
__________________
Thanks,

Rory: www.lawfordmedia.com
lawford is offline
Reply With Quote
View Public Profile Visit lawford's homepage!
 
Reply     « Reply to WANTED: script to auto refresh visitors browser
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12885 seconds with 13 queries