[jQuery] how convert low jquery version function to new version?
hi,
this is jquery table editor plugin,
http://dev.iceburg.net/jquery/tableEditor/demo.php
it is work in this version
/*
* jQuery 1.0.3 - New Wave Javascript
*
* Copyright (c) 2006 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2006-10-27 11:15:44 -0400 (Fri, 27 Oct 2006) $
* $Rev: 501 $
*/
and the function is
<script type="text/javascript">
$().ready(function() {
$("#editableTable").tableSorter({
sortColumn: 'First Name', // Integer or String of the name of the
column to sort by.
sortClassAsc: 'headerSortUp', // class name for ascending sorting
action to header
sortClassDesc: 'headerSortDown', // class name for descending
sorting action to header
headerClass: 'header', // class name for headers (th's)
disableHeader: 'ID' // DISABLE Sorting on ID
}).tableEditor({
EDIT_HTML: 'EDIT2',
SAVE_HTML: 'Save',
FUNC_PRE_EDIT: 'preEdit', //not working jquery 1.3.2
FUNC_POST_EDIT: 'postEdit', //not working jquery 1.3.2
FUNC_PRE_SAVE: 'preSave', //not working jquery 1.3.2
FUNC_UPDATE: 'updateTable' //not working jquery 1.3.2
});
});
function updateTable(o) {
alert('FUNC_UPDATE called');
}
function preSave(o) {
alert('FUNC_PRE_SAVE called');
}
function postEdit(o) {
alert('FUNC_POST_EDIT called');
}
function preEdit(o) {
alert('FUNC_PRE_EDIT called');
}
</script>
it is not working latest version jquery-1.3.2
table sorter fuction is working new version and tableEditor function
is not working
tell your suggestion how i write this table editor function to latest
jquery version