Reply to Re: [PHP] AJAX & PHP

Your name:

Reply:


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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация