Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found