fnReloadAjax Call Inside makeEditable No Longer Works (v. 1.9.0)
fnReloadAjax Call Inside makeEditable No Longer Works (v. 1.9.0)
Ever since I upgraded to version 1.9.0 the fnReloadAjax function no longer works when I call it inside the makeEditable update call.
[code]
var oTable = $('#room-log-table').dataTable({
...
...
...
});
oTable.makeEditable({
sUpdateURL: "..ajax/blah",
"aoColumns":[
null, //ID
null, //Student ID
null, //Student Last Name
null, //Student First Name
{}, //Room ID
{
type: 'datetimepicker',
cssclass: 'jeditable',
fnOnCellUpdated: function(sStatus, sValue, settings){
oTable.fnReloadAjax( "ajax/load_table_data" );
}
}, //In Datetime
....
....
});
[/code]
Console Error
[code]Uncaught TypeError: Object [object Object] has no method 'fnReloadAjax' [/code]
Everything worked correctly with the previous version.
Any thoughts on this?
12Bo.
[code]
var oTable = $('#room-log-table').dataTable({
...
...
...
});
oTable.makeEditable({
sUpdateURL: "..ajax/blah",
"aoColumns":[
null, //ID
null, //Student ID
null, //Student Last Name
null, //Student First Name
{}, //Room ID
{
type: 'datetimepicker',
cssclass: 'jeditable',
fnOnCellUpdated: function(sStatus, sValue, settings){
oTable.fnReloadAjax( "ajax/load_table_data" );
}
}, //In Datetime
....
....
});
[/code]
Console Error
[code]Uncaught TypeError: Object [object Object] has no method 'fnReloadAjax' [/code]
Everything worked correctly with the previous version.
Any thoughts on this?
12Bo.
This discussion has been closed.
Replies
The fnReloadAjax is a function that is not added to the Datatable.js core and needs to be added. Reference the link below for the code that needs to be added.
http://www.datatables.net/forums/discussion/6617/trying-to-use-fnreloadajax-to-automatically-refresh-the-table/p1
12Bo