News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
PHPBuilder.com:
Ajax Edit in Place Using Prototype
December 08, 2006 @ 08:31:00

In a new tutorial from PHPBuilder.com today, they introduce you to a very handy bit of functionality that can help make working with content on your site a much simpler process - Ajax Edit-in-Place (using Prototype).

Edit in place, like many other Ajax functions, uses the XmlHttpRequest Object to call an external page to send and receive information.

They start with the planning, the layout of how the mini application would work before even getting into the code. They assume that you already know how to work with a MySQL database and have an abstraction layer in place before starting in with the Javascript - echoing out the records (print_records), switching from a div to a textarea (changeClass), putting the content back into the database (save), and updating the page with the new information (update_page).

By the end you're left with a simple, clean edit-in-place that you can drop into any page that uses divs to contain the content.

0 comments voice your opinion now!
ajax editinplace prototype javascript mysql ajax editinplace prototype javascript mysql



Similar Posts

Richard Thomas' Blog: Using jQuery with Solar

Stoyan Stefanov's Blog: JS/PHP string concatenation mistype

Crynobone\'s Blog: Creating our own RSS Aggregators

WebDevLogs: ClickHeat - PHP+JS heatmap

ONLamp.com: Points of Attack: PHP and Ajax


Community Events







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


code application zend developer example conference mysql zendframework framework job security ajax PEAR package book cakephp release database releases PHP5

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