News Feed
Sections




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

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


blog comments powered by Disqus

Similar Posts

Community News: Finally, Phorum 5.2 has made it to stable!

Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion

PHPit.net: Building an advertising system with PHP (Part 1)

Utah PHP Users Group: March 2006 Meeting - 16th @ 7pm

Joshua Eichorn's Blog: Understanding AJAX example code now available


Community Events





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


series configure community code developer release api language install threedevsandamaybe unittest bugfix list wordpress application library interview introduction laravel podcast

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