Server-side process not work
Server-side process not work
Hi! I have a problem with Datatables ' s server-side process.
I have this code:
[code]
var oTable = $("#example").dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing.php",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback,
} );
}
} );
[/code]
But i cant' view any result in the table. The ajax call return a correct json!!
What is the problem?
I have this code:
[code]
var oTable = $("#example").dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "server_processing.php",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback,
} );
}
} );
[/code]
But i cant' view any result in the table. The ajax call return a correct json!!
What is the problem?
This discussion has been closed.
Replies
Allan