More 1.9 =-> 1.10 upgrade fun
More 1.9 =-> 1.10 upgrade fun
rstudner
Posts: 21Questions: 10Answers: 0
So far, this has been pretty easy/painless.
So, I have a little issue with a particular table w/ server side paging etc.
code (snippet):
sAjaxSource: self.coverageUrl(table, 'json'),
fnServerData: function(sSource, aoData, fnCallback) {
aoData.push({name: 'window_size', value: self.selectedCoverage.peek().windowSize});
$.getJSON(sSource, aoData, function(json) {
fnCallback(json);
});
},
json result is:
{"sEcho":0,"iTotalRecords":0,"iTotalDisplayRecords":0,"aaData":[]}
I of course will happily convert this to ajax: syntax, just trying to figure out the error (I get it when I use ajax: syntax as well).
Error I get:
error:
TypeError: callback is not a function
callback( api.ajax.json() );
which is from:
var __reload = function ( settings, holdPosition, callback ) {
// Use the draw event to trigger a callback
if ( callback ) {
var api = new _Api( settings );
api.one( 'draw', function () {
callback( api.ajax.json() ); <----
} );
}
This discussion has been closed.
Answers
Can you link to the page in question so I can debug it please?
Thanks,
Allan