Hi. I take it you want a real time scrolling progress chart in a web page. You will need to write a display client in flash or javascript. I don't recommend trying to push an image from the server.

Look on the javascript sites if you like, this is like a keyword "suggest" autocompleting text input field function. The javascript uses Xmlhttp or XMLRPC etc to ask your perl app every second or two for the latest value and then renders it. Probably the prettiest display would be if you use openlaszlo which renders to flash or dhtml. Or you could use Dojo Toolkit, etc. You are talking about making a new widget of your own (the widget you want doesn't exist, I think) so it is not an instant thing.

Incidentally I found a nice javascript bar graph site with downloadable code. It should be quicker for you to use the progress bar from this, and hook it up over xmlhttp to your perl program (see the Dojo site under I/O). However as I say this I note that the Dojo site says they have very fast vector graphics, and so it might be interesting to implement a scrolling line chart in Dojo. Maybe someone else here could give you some pointers, i.e. which xmlrpc module to use, etc.

Opening a CGI every second will get old fast so you probably would want to run the perl app in an HTTP::Daemon or as fastcgi or mod_perl.


In reply to Re: Displaying Status In Continuous Real Time Mode by mattr
in thread Displaying Status In Continuous Real Time Mode by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.