Not Rated!1 Star2 Stars3 Stars4 Stars5 Stars

Flickr Like edit

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).
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.


Post a Comment

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

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>