Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

php / java message popups

I would appreciate some suggestions on the following:

An website page will have records on it which will be updated on a computer in an office accessing this website on the local server.
When the records are submitted  and the appropriate database is updated, another page being accessed on the same website / server but using a computer in another office in the same building needs to get a pop up message saying that a record has been updated.

Would I use sessions for this ?
ASKER CERTIFIED SOLUTION
Avatar of jrm213jrm213
jrm213jrm213
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No points for this (jrm213^2 has given the right answer).  Just wanted to let you know that under the rules of HTTP client-server systems, clients make requests and servers make responses.  And that's all.  Servers cannot initiate any action on a client machine.  That's why you need the AJAX polling.  AJAX will make repeated requests, thus simulating an event listener.

An md5() string is a useful thing in this design.  When it changes, that is because the input to md5() changed.  I use that design to monitor web directories.

Best of luck with it, ~Ray
Avatar of doctorbill

ASKER

could you give me some example scripts / pages please
Thanks very much for the advice. I found a message script called Blab which works very well, and one called php 121