IE 8 - Callback Function of JEditable handler does not trigger
IE 8 - Callback Function of JEditable handler does not trigger
I was using IE8 and found problems. After I edited a table cell, the value was saved successfully but the update value did not show up until I refresh the browser manually. I found that the callback function had not been trigger after update saved. However, the same code worked on Chrome. If anyone knows why, please reply. Thank you
IE8 Version: 8.0.6001.18702
Chrome Version: 5.0.375.126
The code as follow:
[code]
$("TD[name=textfield]", oTable.fnGetNodes()).editable("gz_unit_table_edit.php", {
submit: \'OK\',
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute("id"),
"field":"unit"};
},
"height": "14px"
} );
[/code]
IE8 Version: 8.0.6001.18702
Chrome Version: 5.0.375.126
The code as follow:
[code]
$("TD[name=textfield]", oTable.fnGetNodes()).editable("gz_unit_table_edit.php", {
submit: \'OK\',
"callback": function( sValue, y ) {
var aPos = oTable.fnGetPosition( this );
oTable.fnUpdate( sValue, aPos[0], aPos[1] );
},
"submitdata": function ( value, settings ) {
return { "row_id": this.parentNode.getAttribute("id"),
"field":"unit"};
},
"height": "14px"
} );
[/code]
This discussion has been closed.
Replies
Allan