[DHTML] Extremely Easy In-place-editing [outdated]
1) CODE TITLE: quickEdit
2) AUTHOR NAME/NOTES: BYK
3) DESCRIPTION: This library is for quickly and efficiently editing of text and image based page components. The functions included in this library are not for external use generally and all you have to do is read the "initEditables()" function's explanation to start using this good system with almost no JavaScript knowledge at all. This library is very useful for user profile pages' or dynamically generated pages' editing operations. This editing is used for page. We can correct this as "in-page-editing" which includes images. You should see the demo video to completely understand what I mean. ;)
The explanation is as follows
Quote:
This function initializes the ALL editable elements.
For an element to be considered as an "editable element" it should have editaction, editparams and editcond properties.
editaction property contains the adress of the server side page which will receive the change request, just as a form element's action property.
editparams property contains the additional parameters AND THE NAME OF THE VARIABLE WHICH THE NEW VALUE WILL BE ASSIGNED.
editcond property contains a Javascript expression or simply 1 or 0 which determines WHEN THE ELEMENT CAN BE EDITED.
editfade property will add an extra FADE EFFECT when user gets his/her mouse over the editable element, it fades to the given value (0<=value<=1)
edittype property defines the text-based editable elements editing elements. To be more clearly, if you set edittype="TEXTAREA" then the script will generate a TEXTAREA instead of a TEXT INPUT for the editing of that editable element.
4) URL TO CODE: http://amplio-vita.net/JSLib
Demos are on the given URL but a direct link to the short and brief(90secs) YouTube video demo is here: http://www.youtube.com/watch?v=d6zcaWdkQJ0
Note: This library is a part of the amplio-vita JSLib project and needs its ajax_main.js to run. All explanations are made on the uncompressed library as comments. Please give feedback to improve our library.