Sep
4th

Flickr Like Edit in Place

Posted by Ajax Lady

How to edit in place using AJAX?

If you are not familiar with how flickr handles editing data, here’s a short summary.

  • Show user the data field normally (for instance: the title of a picture)
  • When mouse rolls over that title, make the background of the word yellow
  • If the user clicks on the word, change that word to a input box with the word in it. Also show a “save” and “cancel” button
  • A user can rename the picture and then push “save.”
  • Run a little script that updates the name into the database
  • Remove the input box and the buttons and return to the original title display (updated with new title).

Flickr ajax edit in place example

It shows how to write a little code to emulate flickr edit style effect almost perfectly.
The script is not using any third party libraries. There is a lot of html code involved, i don’t recommend it
if you intend to use a ‘plugin’ like edit in place script. On top of that, php and html is mixed together meaning more difficult to customize the script.

for latest updates on Flickr like edit in place script please click here.

Download Code

Share and Enjoy:
  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Furl
  • Facebook
  • Google
  • YahooMyWeb
  • Live
  • TwitThis
  • BlinkList
  • E-mail this story to a friend!
  • Mixx
  • description
  • LinkedIn
  • Reddit
  • SphereIt
  • Sphinn
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3 out of 5)
Posted in Text Processing

Post a Comment