Updating page content using server data
Posted on 2002-07-08
I have a page in a frame that displays the status of a device. I refresh the page every 3 seconds and use CGI script to get the status. Most of the time the status does not change.
I would like to read the status variable from the server and update the page status only upon change. I do not like the idea of a page refresh.
I know that I can use a Java applet to read the page and compare the last status with prior one. If it changed then I'll ask the applet to reload the page (a frame).
What is the best way to accomplish what I need? Which is: read data from server and display status change if needed.