Page 1 of 1

Refresh Question

Posted: Tue Feb 03, 2004 3:10 pm
by cto1mac
Ok, here is the problem. My bosses want a centralized point to show statuses of various events at our company. Not a problem. Then he wants us to take and design a site (PHP) that all of us can login to, so we can keep track of these events. But here is where my problem starts. I need it so that if 5 people are logged in and have the status page up when I change a status of an event the new data reflects on their browsers. Without a manual refresh. Is it possible to make the server push out the refresh?? or something like that??

Thanks

Posted: Tue Feb 03, 2004 4:55 pm
by infolock
yes, but this is normally done through javascript.

Posted: Tue Feb 03, 2004 9:05 pm
by cto1mac
Can you offer any location to look for that code or better yet an example??

Posted: Tue Feb 03, 2004 9:23 pm
by microthick
You can use a meta refresh, if you like. This tag goes in the <head> of the website and tells the browser to refresh to the specified page in about 5 seconds.

<META HTTP-EQUIV="refresh" content="5;URL=http://www.microsoft.com">

Or, you can use JavaScript.

You can find an example here:
http://www.javascriptkit.com/script/scr ... resh.shtml