Buy me a Coffee
Web 2.0 Training
Your Ad Here
 
headermask image

Random Header :: Unpredictably Exciting

My status

AJAX Edit In Place :: Edit and save a paragraph of text in an HTML page

This class can be used to edit and save a paragraph of text in an HTML page.
It associates the necessary Javascript event handling code to turn a given paragraph in an HTML page into editable text when the user clicks on it.  When the user finishes editing the generated Javascript submit the paragraph text to the Web server using AJAX request so it can be saved.

Demo:

Download:

If you liked my post, feel free to subscribe to my rss feeds

3 Comments so far (Add 1 more)

  1. Nice code, Rochak!
    In your soure, example is in php code, but your demo is in html code.
    Could you explain how to change example in html code instead of php code?
    Thanks.

    1. Evgeniy BELARUS Windows XP Mozilla Firefox 3.6.2 on March 25th, 2010 at 3:39 PM
  2. I have been playing around with it a little.

    When you add in some html code, the script only allows you to edit the parts of text that are before the html code.

    Any ideas how to solve this?

    2. Dan Hardy UNITED KINGDOM Windows NT Mozilla Firefox 3.5.8 on March 24th, 2010 at 1:15 PM
  3. Superbly simply.

    Makes it easy to keep the styling seperate from your user, something I have always been wary about with CMS’s.

    Thanks a lot!

    3. Dan Hardy UNITED KINGDOM Windows NT Mozilla Firefox 3.5.8 on March 23rd, 2010 at 7:31 PM

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

  Wordpress Themes Protected By Wp Spam Blocker