Re: dynamic graphs (in real time)
| From: | Jim Lucas | Date: | Sat, 03 May 2003 17:13:45 +0000 |
| Subject: | Re: dynamic graphs (in real time) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146291@lists.php.net to get a copy of this message | ||
I think this could be done with a few tools.
You could build a flash app that can tunnel to the server without refreshing
the page.
flash would get the new data
then
have draw a new graph using javascript to write/alter an SVG graph
This might work for you
The persons that will be viewing this page, how are they going to connect to
the server, via a modem or highspeed connection?
if it is a modem connection, you can forget REAL-TIME refreshing altogether.
it would take longer then 1 sec to send the request / process the request /
receive processed data and then change the graph.
But what I described above will get you going down the right road IMHO.
Jim Lucas
----- Original Message -----
From: "Wakan" <porcapuzza@yahoo.it>
To: <php-general@lists.php.net>
Sent: Saturday, May 03, 2003 10:00 AM
Subject: RE: [PHP] dynamic graphs (in real time)
> Yes,
> but the frequency I need is inferior to 1 sec.
> Is there something like opening a connection
> with the server without closing it, and update
> the image continuously?
> but without flickering problems...
>
> At 12.50 03/05/2003 -0400, you wrote:
> >Why not have a php cron job that runs every x seconds and creates a new
> >gif of the graph, then your page can use javascript to reload the image
> >every x seconds
> >
> > > -----Original Message-----
> > > From: Wakan [mailto:porcapuzza@yahoo.it]
> > > Sent: Saturday, May 03, 2003 12:50 PM
> > > To: php-general@lists.php.net
> > > Subject: [PHP] dynamic graphs (in real time)
> > >
> > > I'm writing an application that
> > > reads data from some serial sensor.
> > > I'd like to generate a graph (I'm using the jpgraph) from that data
> >and
> > > display it in real time.
> > > The question is: how can I show data while they're changing ?
> > > I've tried to reload the browser each seconds, but it's not so elegant
> > > (I don't want to reload the entire page) and I need to display data
> >more
> > > frequently.
> > > Some ideas?
> > > Carlo
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>