Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Displaying Status In Continuous Real Time Mode

by mattr (Curate)
on Jul 25, 2007 at 09:47 UTC ( #628656=note: print w/ replies, xml ) Need Help??


in reply to Displaying Status In Continuous Real Time Mode

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.


Comment on Re: Displaying Status In Continuous Real Time Mode
Re^2: Displaying Status In Continuous Real Time Mode
by hrr (Monk) on Jul 26, 2007 at 13:47 UTC
    Another nice javascript graph tool is PlotKit. However, I am not sure how active development on this tool is.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://628656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-20 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls