albert kao schreef:
Hi,
Sounds like you should poll the server from time to time from the client.
You could use XMLHttpRequest to do this without a pagereload.
Start reading here for a quick introduction:
http://www.w3schools.com/ajax/
On the server you could create a file that holds a timestamp (for example).
Pull that file from your client every 60 secs or so. If it is changed,
refresh the page and make sure you store the new value of the timestamp
(via cookie or serverside scripting, whatever).
Also, when you feel there is some reason for your clients to refresh
(message arrived, db updated), simply update that file on the server
with the new timestamp in it.
Regards,
Erwin Moller
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare