Log in

View Full Version : HELP! custom script needed?



gid
04-06-2007, 02:23 PM
Hey! can anyone help me? I need a script that auto refreshes a page once it is updated. something like an ongoing thing. Hope u guys know what' i'm trying to refer to. :o

Here's a sample (http://twilight-rhapsody.com/ddrive.htm)

djr33
04-06-2007, 03:10 PM
<html>
<head>
<meta http-equiv="refresh" content="5;url=http://my.com/page.htm">
....
</head>
<body>...</body>
</html>



The number is the number of seconds before the refesh, and the url is the url to be forwarded to. Using just content="5" would refresh to the current page (URL ommitted), creating a loop.
Note that the loop will only exist if you do link the same page (or, I suppose, a similar page) with the refresh code on it.
Use content="0;..." to have it refresh automatically (this is for using as a redirect to another page; you wouldn't want this to the same page, or it would just load endlessly, never stopping to display the page).

Also, be careful with this. With a slow connection this would be a pain, and it could just be very annoying on your site, depending on the use.