25 Comments
- joethepeacock, on 10/12/2007, -1/+4Look, this guy wrote a bit of code and posted it to digg (or someone else did) in the hopes that it'd be useful to people. Obviously, 309 other folks (as of this posting) have found it thus. Just hush already. It's on the front page because people liked it enough to put it there.
Want to use another lib? Do so. Just... Do so QUIETLY. - echeese, on 10/12/2007, -0/+3Heh, just don't click on it when it says "Saving"
- Grimdotdotdot, on 10/12/2007, -2/+5How is this news? People have been doing this for ages.
Yet another example of a title with the word 'AJAX' in leaping to the front page.
Also, it's interesting you use Flickr as an example when DIGG let's you edit in place too. - smhill, on 10/12/2007, -0/+2http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor
There are better demos in the actual script.aculo.us examples when you download the src. While this one is alright, it relies on protoype as well, and isn't as feature rich or elegant as the script.aculo.us one, plus you get everything else that comes with script.aculo.us. - j0k3r, on 10/12/2007, -0/+2a little better than the 24ways's solution ..
- headzoo, on 10/12/2007, -0/+2I've got a WordPress plugin that does this: http://www.headzoo.com/editnplace
Lets you edit your blog post right on the front page of your blog. - Grimdotdotdot, on 10/12/2007, -0/+2Direct link to the example: http://josephscott.org/code/js/eip/example.html
- inactive, on 10/12/2007, -0/+2Looks neat, I like that feature on Flickr. Would be cool if you can add resizing in the edit part, like how drupal does.
- smhill, on 10/12/2007, -0/+1Digg isn't a personal blog, it is a resource.
He posted as a resource, myself and others offered other options that do the same or better.
Hence the point of digg being a "community" site. Not a "look at my stuff, but don't hurt my feelings" site. Get some perspective.
- lukes, on 10/12/2007, -0/+1Yeah, quirky bug in the demos on the examples page. With the top example you can get it to clone 'Save' and 'Cancel' buttons as well as spitting out half formed span tags. Um .. use with caution! Or at least debug before you use it.
- passion, on 10/12/2007, -0/+1The difference is that this supplies documented source code which you don't have to strip out of a larger page. Sure, others have done this before, but this one is well done.
- smhill, on 10/12/2007, -0/+1Ah.. I see. I do agree with that.
There are tons of stories on Digg that make it to the front page that I don't care about. So I don't read them or comment on them. - Zipp425, on 10/12/2007, -0/+1Nice. Ive been doing this with dojo for a while, but this is cool too.
- rhyno2000, on 10/12/2007, -0/+1This is not a bad way of doing it.
I updated this script to allow for (virtually) unlimited edit-in-place text boxes via a simple array in PHP:
http://home.comcast.net/~rhyno2000/editinplace_v021.zip
A little kludgy, but was a fun exercise... - shockingbird, on 10/12/2007, -0/+1That's a good question. I haven't looked at the code to see whether it's easy to take that variable and post it to a DB.
- inactive, on 10/12/2007, -0/+1This "edit in place" tactic has no useful features about it, and it'd ridiculously easy to code yourself. TinyMCE is the way to go for editing text in place. Dojo is much too bloated (55kb at the least) to use for handful of features.
I'd recommend MooFX/Prototype in conjunction with TinyMCE for text-editing + AJAX/FX. - headzoo, on 10/12/2007, -0/+1dmorel - Thanks... yeah, re-displaying the tags after an edit is a bit complicated. Rest assured that the tags did get edited though. :)
- j0k3r, on 10/12/2007, -2/+2Yes why not :)
- jgeek, on 10/12/2007, -0/+0See this solution also: http://www.servletsuite.com/servlets/editdivtag.htm
- dink, on 10/12/2007, -1/+1if this is so old school to you, then why don't you start a consulting firm and help businesses realize these "old tatics"? The average mindset in america has not seen the likes of flickr. Remember this whole web2.0 stuff except for google.*( if you want to call their stuff web 2.0ish) isn't anywhere near mainstream conciousness.
- dmorel, on 10/12/2007, -0/+0"Yet another example of a title with the word 'AJAX' in leaping to the front page."
and now we have another example of someone complaining that AJAX posts always get front page, and then someone else saying you're a knucklehead for saying that, and then someone else...
At this point, when an AJAX related article gets to the front page can't we all simply stipulate that a bunch of people will find that annoying on principal, and a bunch of other people will find the people who find it annoying on principal annoying themselves, and stop actually writing all the useless (this post included) drivel. - joethepeacock, on 10/12/2007, -0/+0@smhill:
I wasn't actually referring to you -- I was talking mainly to the "Another example of AJAX blah blah blah" and those who insult the script. But at the same time, I do have perspective: 405 people now find this resource useful enough to digg.
My only point: It wouldn't be dugg if it weren't found useful by SOMEONE.
So, yeah. That's kinda all I have to say. - computerbynar, on 10/12/2007, -1/+1how do you submit this to your server?
- dmorel, on 10/12/2007, -0/+0@headzoo
On your video demo... you edit the tags, adding in politics, but when you apply the changes, the tags don't update though the text that you format does.
Just in case you didn't know... - inactive, on 10/12/2007, -7/+0BEGIN>>AIFJEOAIWWBABSOXICNVIOOAPSKDMCMZAKQQIAJSDBOASIBDOIJQOIQJAOSDPVBVOWEBVISUEHFVSIUEFUGSIVQWQOIIAISJDBNWLWLLWIDIOAOIVCYVTDEGEEDFGFGGDHHHJJKUKIYIIDIIXIIQIIEIEWKKWKWMMCNNWIDJWAAAIWJHOWIHQHQUIAHSBDKKAUSHQOPASODNPWIHDIWBFBBFIAIIQUUQHHDHUAUWWBDBOAOAIWIWBAOAOWDBQQQB


What is Digg?