Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebProNews:
PHP On-the-Fly!
Dec 03, 2004 @ 14:28:24

PHP Magazine has a new posting today concerning a new WebProNews article - PHP On-The-Fly!

In a new article on Webpronews, Dennis Pallett shows you a way to update pages in real-time, without having to reload a page or submit a form. Earlier, to execute a PHP script, you needed to reload a page, submit a form, or something similar. Basically, a new connection to the server needed to be opened, which meant that the browser went to a new page, losing the previous page. For a long while now, Web developers have been using tricks to get around this, like using a 1x1 iframe, where a new PHP page is loaded, but this is far from ideal. The author shows you how to use a JavaScript component, called the XML HTTP Request Object and some custom JavaScript functions to create some rather impressive PHP applications.

The XML HTTP Request Object is a pretty powerful little tool that can compliment PHP rather nicely. Most people, however, just haven't given it a try...for more information on it, check out this site.

tagged:

Link:


Trending Topics: