Search


Change Language


Ajax Downloads Home arrow Java WYSIWYG Editors
Free AJAX Scripts by Freeajaxscripts.net
Easy AJAX inline text edit 2.0 - AJAX Script

how it works

A small piece of javascript reads al SPAN tags, checks if it has class="editText" and a id=. If that is true, it adds a onclick function. That onclick function will create a textfield or input (depending on the size of the editable text). Someone has the ability to edit the field. When the text field is blurred, it will read the contents, and starts a XMLHttpRequest and ‘sends’ the content + fieldname + any set vars to an update file. That file will update your database, and reply with the newly set text and the textfield will dissapear again.


IE? FF?

This script works in internet explorer, netscape and firefox. Any other platforms haven’t been tested. That’s kinda up to you.

 

Update: HACKS

If you want to force a textarea over a textfield (for example to edit a piece of HTML) use class="editText" offsetHeight="10”.

If you want to PUSH an ID to your script I use: id="edit_userID_$userID". In your update script, strip the text, and keep the $userID. Et voila.




Average Visitor Rating: 3.80 (Out of 5)
Number of ratings: 10

Select your rating
Excellent  Good  Average  Fair  Poor 
Script Information
Website: Home of Easy AJAX inline text edit 2.0
Demo: Demo
Average Visitor Rating: 3.80 (Out of 5)
Number of ratings: 10
Hits: 7358
Added: 2007-02-04 16:40:13
Last updated: 0000-00-00 00:00:00


There are 279 free ajax scripts and 31 categories in our directory





Lost Password?
No account yet? Register
We have 14 guests online