Click to See Complete Forum and Search --> : Refresh page only when modified


pzui
06-10-2003, 03:40 PM
Hi,

At the moment I have a message board on my site which refreshes every 15 seconds using:

<meta HTTP-EQUIV="Refresh" CONTENT="15">

However, I would like to use a javascript which refreshes the page only when it has been modified, i.e. when a new message is added. Does anyone know how to do this?

pyro
06-10-2003, 03:50 PM
You can't. Javascript can't communicate with the server, so you won't have anyway of knowing when there is or is not a new message.

brendandonhue
06-10-2003, 03:51 PM
No. JavaScript can not detect when the page has changed. Javascript is client-side and it can't communicate with the server.

Besides-it would really tick me off if I was trying to use a message board and it kept refreshing while I was reading posts.