Forum Moderators: mack

Message Too Old, No Replies

reload a webpage every 60 seconds

How do I get a webpage to reload ('Refresh') automatic every 60?

         

Franky

11:30 pm on May 14, 2003 (gmt 0)

10+ Year Member



Hello everybody,

I want to reload a webpage on my site automatic every 60 seconds and continuously. I want a refreshing of the page every 60 seconds.
Does anybody know how to reach this?

>> to explain my question: on the page I've got a counter that displays the number of people that are visiting the page; but the counter doesn't adapt to the number of real visitors since the page was shown for the first time. It shows the number of visitors at the moment you open the page, but that number stays stable, regardless of the people visisting and leaving the pages since. It only gives an actual number of visitors for a given moment when I reload ('Refresh') the page. <<

Thanks in advance!
Greetings, Franky

figment88

12:12 am on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you probably don't want to refresh the whole page becuase it is really annoying if you are reading something and all of the sudden it disappears as the page gets refreshed.

Depending on how your site is coded there are a number of options. Probably the simplest, though, is to put the counter in a seperate file, include that file in the web page with SSI or an iframe and then just refresh the counter page.

Main Page:
<iframe width=10% hspace=0 vspace=0 frameborder=0 marginheight=0 marginwidth=0' src=counter.html></iframe>

counter.html:
<META HTTP-EQUIV=Refresh CONTENT="60; URL=counter.html">
Counter code

Slade

12:22 am on May 15, 2003 (gmt 0)

10+ Year Member



You also don't really want to refresh the page that actually does the counting, if it doesn't understand user sessions. Otherwise, every person that sees the page and stays there longer than your interval will count more than once.