View Single Post
Old 03-23-2008, 02:28 AM   PM User | #1
spetsacdc
New Coder

 
Join Date: Mar 2008
Posts: 92
Thanks: 19
Thanked 0 Times in 0 Posts
spetsacdc is an unknown quantity at this point
Scriptaculous in place editor

Hi, I am simply trying to implement the ajax in place editor system with scriptaculous.

http://wiki.script.aculo.us/scriptac....InPlaceEditor

Its easy to install the script and everything, but I am trying to do the extra part he talks about at the bottom:

Small extension to editor to add a text in case field is empty.

Now, I have everything working, but if you click the "click to edit..." thing that the extension adds to an empty field, then click cancel, the field goes blank instead of back to "click to edit..." so the user can't edit it unless he refreshes the page. Is this a bug? Anyone know how to edit the script to call the if empty function when they click cancel?

Thanks
spetsacdc is offline   Reply With Quote