Cannot read Length of undefined while using fnServerData

Cannot read Length of undefined while using fnServerData

akhileshakhilesh Posts: 1Questions: 1Answers: 0

While using fnServerData to get the ajax calls in Datatables, it throws an error stating "Cannot read property 'length' of undefined" which points to the datatables library file of jquery.datatables.js in line 3030(version 1.10)

The code snippet that I'm using

"sAjaxSource": myURLtoUse
"fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
oSettings.jqXHR = $.ajax( {
"dataType": 'json',
"type": "GET",
"url": sSource,
"data": aoData,
"success": fnCallback,
"error": function (e) {
console.log(e.message);
}
});
},

This discussion has been closed.