Re: AJAX & PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux