Dear all,
I have been asked to write a simulator for a project - which is done.
However, presenting the data has hit a snag.
my perl program takes a feed from a simulator (all ok), acts on it (all ok) and then should present the data to the summary screen at intervals (currently 10 seconds).
So we have:
read data
form html page with simulator input
wait 10s
show stage 1 of processing data
wait 10s
show stage 2 of processing data
wait 10s
etc.
(5 stages in total of processing, so that an engineer can look at the current state of the process and analyse for any anomalies/etc. etc)
This all seems to work OK EXCEPT
that my cgi program, after each wait, writes to the screen a full web page BUT THIS IS TAGGED ON TO THE END OF THE CURRENT ONE ON THE SCREEN INSTEAD OF FORMING A COMPLETELY NEW PAGE.
Q: How can I refresh the HTML screen as well as the data in the page?
I don't really care if it can't be done in perl - I can adapt javascript or html if required.
I have tried the meta tag 'refresh' in the HTML page, which works but it restarts the whole CGI program from scratch - ie does all the initialisations that would be done BEFORE the simulator analysis is done, which is obviously what I do not want.
Any help or suggestions?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.