Flickr Like edit

Read more and download "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.




Web 2.0 Box Generator



Comment on this example

Name
Url
Comment
Captcha
 

 

1
John
2009-12-04 11:38:56
Umm, Most sites don't put up demos that use php due to them being very basic and not including security and such as those are different topics...... but if you would have clicked the read more button up top the blog post has a example script. It requires knowledge... http://dbachrach.com/blog/wp-content/uploads/2007/01/showAjaxUpdater.php

2
Vibhuti
2009-11-11 00:38:11
GOOD YAAR BUT ITS NOT SAVING MY EDITED DATA

3
Mohit
2009-04-22 21:56:35
very good..bt its not saving..

4
Ipsg007
2009-03-10 09:00:25
extremely slow...

5
Cheeseguy
2008-12-03 19:02:14
its not working...it sucks

6
Shaun
2008-11-24 06:57:31
I like this a lot going to use it in my website i think just for fun!

7
Eliskcage
2008-11-21 09:57:02
very annoying making people think they will have a page altering shoutbox (look at all the angry people) I have made a flatfile version but why would I share it when there's retards like you around?

8
Sumi
2008-11-07 22:43:08
very nice.it is not saving

9
Ivan
2008-10-03 11:14:48
NO FUNCIONA QUE PASO AQUI !! CARAMBA QUIERES ENSEÑAR O QUE TE ENSEÑEN

10
Memdan
2008-06-10 06:29:50
Ajax est le plus fort

11
Boygeorge
2008-06-09 03:58:56
It's not working... "SAVING"

12
Amresh
2008-05-27 02:39:06
I disagree, the sample is not that great. such a poor mix of php and HTML. It is barely customizable. The javascript function is write in ad hoc manner. Its an ideal way how not to write sample code. http://24ways.org/2005/edit-in-place-with-ajax

13
Smp
2008-05-23 11:18:17
tried incorporating with cold fusion, database is updating, but saving.... message hanging -- any thoughts????

14
Ikea
2008-05-06 02:11:03
Its so slow

15
Muhammad Amjad Khan
2008-03-20 09:06:40
very nice effort, i love ajax, please send me more like these stuff.

16
Rajan
2008-03-20 05:15:49
cool guy cool collections

17
Keusta
2008-03-11 02:28:30
here is the other php file that we need for saving the link is just under the post title guys !!!

18
Azmeen
2007-12-23 19:11:55
Awesome JS! Thanks for sharing it.

19
Shilpa
2007-12-13 22:47:52
nice. please and veryuseful . can u please send more tutorials to me. i want to learn most of it.

20
Lawk Salih
2007-11-21 10:02:34
This would be very useful for someone who works a lot with data and data entry. Edit right on the spot.

21
Merhaba
2007-11-20 05:35:06
this is very fine

22
Shabith
2007-11-07 13:26:20
it doent working?? just saying "saving..."

23
Ace
2007-10-28 13:58:19
Definitely needs improving. Unless the demo works I don't touch it. BETA

24
Ooo
2007-10-18 03:32:03
it would be great if u pu some help about php related files... ;)

25
Faustino Licud
2007-10-09 19:06:56
hello this is good

26
Asad
2007-10-03 16:25:32
cool this is very userfriendly

27
ROB
2007-09-26 14:52:30
HANGS ON SAVING...NO HELP REGARDING SERVER STUFF

28
Mike
2007-09-25 14:25:40
Wow - Great tutorial

29
Ashley
2007-09-24 23:51:26
Even this comment box is AJAX ha ha - wow

30
Ashley
2007-09-24 23:50:56
This site is very handy, great work, keep it up

31
Delang
2007-09-22 02:56:11
look great. i already done almost the same thing too but this one more better.

32
Jollky
2007-09-09 10:17:21
I'm not sure code above is work. How about "saving..."?

33
Rakesh
2007-09-06 07:37:45
when you edit and same, it just keeps on saying saving...please explain or provide a fix. thanks

34
Graham
2007-09-01 04:17:30
oops sorry for the double post. As per the comments on Dustin's site, I cannot for the life of me get the save working. Anyone been able to get this working? I've tried locally on my dev server and also live on my webserver.

35
Graham
2007-09-01 03:20:31
This one isn't as obvious to get working as some of the others. Just sits saying saving. Will need to look into this one a bit.