Jedit without XHR request
Jedit without XHR request
systematical
Posts: 23Questions: 0Answers: 0
Is it possible to use jedit without making a callback to the server? I only need to update whats in the tables TD and then give the user the ability to print that table.
This discussion has been closed.
Replies
[code]
"fnCreatedRow": function(nRow, aData, iDataIndex){
$('td:eq(4)', nRow).addClass('make-editable');
},
"fnDrawCallback": function(){
$('.make-editable').click(function(){
var pos = oTable.fnGetPosition(this);
var me = this;
var value = $(this).text();
$(this).html('');
$(this).find('input').focus();
$(this).find('input').blur(function(){
var newValue = $(me).find('input').val();
oTable.fnUpdate(newValue, pos[0], pos[1], false, false);
$(me).html(newValue);
});
})
}
[/code]
Note jedit was not necessary.