yvoschaap.com — As everybody knows, refreshing pages is so 1999. AJAX, DOM, whatever you call it makes it possible to let people edit a piece of text inline without having to use a submit button. You say: but that ain’t new at all! But all of this has been made easy to use and implement.
May 16, 2006 View in Crawl 4
zjm7891May 16, 2006
How bout you actually browse the site and enable javascript...
ascheinbergMay 16, 2006
Just be careful with this. Updating a database via ajax is kind of risky, because there's no referrer to test, so anyone can read the script and request it on their own. Note that cookies and session variables DO work, so you should make sure ANY page that talks to a db in any way, shape, or form is somehow protected from someone, anyone, including a bot, from requesting the page and instantiating an action.In short: don't use AJAX except where it's appropriate. It's not a web panacea.
n0xieMay 17, 2006
Very nice script
felix9xMay 17, 2006
One weakness with such approach is that there is no visual way to see which fields are editable or not you have to actually click on something to see if you can edit it. One way is around this is to add borders or some sort of way to see what can be edited in so called edit mode. Once you start going this way then the page starts looking differently from the original.Looking at the code I see nothing is done to handle such a case if you had a link inside a field you wanted to edit. Also every time you hit enter it sends data over to the server. Seems like some excessive requesting to me. This code needs more polish.
ymschaapMay 17, 2006Submitter
You can see if a text field is editable by:- onmouseover you get a pointer cursor- onmouseover you get an alt text with "click to edit"You can also have it underline the editable text parts (edit the js function highLight())
poohneatMay 17, 2006
I like this [<a class="user" href="http://www.wikiwyg.net/]">http://www.wikiwyg.net/]</a> Wikiwyg is the simple way to add Wysiwyg editing to your existing [anything] project.
topsubMay 18, 2006
There is one on digg that uses a mysql Database to updated content instead of a text file
topsubMay 18, 2006
double click the text to edit.<a class="user" href="http://bossmanmedia.com/ajax/">http://bossmanmedia.com/ajax/</a>
becosJun 21, 2006
Hello!I have a question for YMSCHAAP:But before, I would like to tell you that i really like the slick and slim sollution for updating an inline field with AJAX.However, I saw that the update is done with PHP server side. Right now, I have a project that runs callsic ASP scripting. I wonder if you can adapt your functionality for ASP. I am not a programmer, but i tried myself as well. Of course, i couldn't make it work but, as i said, i am not a programmer. My question is: cold you make it work with ASP that updates aMySQL database?Thanks bunches!Regards,Beco
rhbalingenFeb 18, 2008
Hi,just finished my own little "EditInPlace", may be someone might like it ...<a class="user" href="http://rh-balingen.de/clip_this/eip.htm">http://rh-balingen.de/clip_this/eip.htm</a><a class="user" href="http://rh-balingen.de/clip_this/eip.zip">http://rh-balingen.de/clip_this/eip.zip</a>( -: roland :- )