News Feed
Sections




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

O'Reilly:
Migrating Web-Based PHP Applications to Ajax
May 10, 2007 @ 10:54:04

In a new tutorial on O'Reilly's ONLamp.com website today, Bill Lubanovic shows an example of moving a normal web-based PHP application over to a more Ajax-enabled environment.

In the web environment, we've typically needed hacks like populating hidden fields in a form, and regenerating the whole page, even for a tiny change. Can we make the process more rational?

This article describes a makeover of a typical database-backed web form. We'll show some old code '" a mixture of HTML, JavaScript, and PHP '" and rebuild it with modern web techniques like Ajax, and modern tools like jQuery.

In their example, they show how to take a simple form element, a select box of names, and modify it to work with an Ajax connection. Instead of having to submit the information back to to the PHP script with a form submit button, they can make a request when the user changes the select option to get that person's information. They've included all of the relevant code and some great explanation to help you recreate the example and move on to work up your own.

0 comments voice your opinion now!
migrate application ajax webbased tutorial jquery migrate application ajax webbased tutorial jquery


blog comments powered by Disqus

Similar Posts

Nadeau Software: PHP tip: How to get a web page using CURL

DZone.com: Building a Flickr Slideshow with NetBeans IDE 6.5

Zend Developer Zone: AJAX Chat Tutorial

Till Klampaeckel's Blog: Iterating over a table (with Zend_Db_Table and Zend_Paginator)

Laravel News: 75 Laravel Tutorials, Packages, and Resources from 2014


Community Events

Don't see your event here?
Let us know!


interview conference opinion release api configure laravel community language introduction application library framework series symfony2 voicesoftheelephpant php7 performance podcast example

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework