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.




Visit PhpDaddy.com



Comment on this example

Name
Url
Comment
Captcha
 

 

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

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

3
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

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

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

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

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

8
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 !!!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

24
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

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

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