in reply to Page refresh, timings and simulations
I built something like this for an EMS system using SVG as the user interface a few years ago. A similar approach would probably work in HTML.
In my case,
With a careful design, you can send a very small amount of data with each update compared to what would be needed to replace the whole page.
In order to avoid restarting the simulation, you could run the simulation as a separate process and communicate with it through the CGI, instead of running the CGI process indefinitely.
Another possibility (that I haven't tried, so take with a grain of salt) would be to make a request to the simulation immediately after the page loads and process the data as an incoming stream. Take each line or record of the data stream and update the interface as I described above.
The key to both of these approaches is client-side intelligence to update the screen, rather than rewrite it all on the server side.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Page refresh, timings and simulations
by gsd4me (Beadle) on Jun 04, 2009 at 08:16 UTC |