|
Posted by Chris Shiflett on 08/29/05 22:11
Mikey wrote:
> ok, so you have html like
>
> <img src="/images/graph.php" name="img">
>
> and you have js like
>
> // some event that triggers the script
> document.images['img'].location = "/images/updated_graph.php";
>
> And php makes your graph. Using whatever classes you choose.
Another option is to exchange the images (using the JavaScript Mikey
uses) after PHP has generated the image, so that there is less lag in
between. Whatever event you use to trigger the exchange can wait on a
response from a PHP script, and that script can generate the image
before responding, so that when you exchange images on the client side,
your server-side activity is already complete.
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
Navigation:
[Reply to this message]
|