Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 45
Location: Saskatoon, Saskatchewan, Canada
Trades: 0
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
 
 
Register now for full access!
Old 10-17-2002, 01:27 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
Old 10-17-2002, 02:12 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
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).
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 10-17-2002, 02:30 PM
AhmedF's Avatar
Left for Better Places

Posts: 258
Trades: 0
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, 02:32 PM
lawford's Avatar
Experienced Talker

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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.66817 seconds with 12 queries