|
OverDrone -> Refresh HTML page by server event in realtime(1 sec) (6/17/2003 1:53:51)
|
I am about to build Web application: Specialized services in background, HTML Page in front. Specific Services <-> HTTP Server <-> HTTP Client (Browser). State of some process is visualized with HTML Page. Situation can be changed very quick. Visualization of current state with HTML Page must be with minimal delay (about 1 sec). I tried several methods: 1. Java Applet on HTML Page is establishing IP connection to home HTTP Server and when it receives refresh signal it tries to refresh page content. The only way I found to do this is to use Java Package Netscape.javascript. The problem is that Microsoft VM settings restrict use of JavaScript from Java Applet by default. And program must work without any additional browser fine tuning. 2. Use of HTTP Header: Refresh. One small frame is refreshed every second and when needed it have JavaScript that refreshes the main content. Disadvantage is that every second browser shows to user that something is being downloaded. This is very annoying. If only Browser wouldn' t show that something is happening every second.
|
|
|
|