fnServerData - what is aoData?

fnServerData - what is aoData?

faszynskifaszynski Posts: 11Questions: 0Answers: 0
edited November 2012 in General
I have code:
[code]
$(document).ready( function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "xhr.php",
"fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
oSettings.jqXHR = $.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
} );
} );[/code]

What is parameter aoData? How can I display values form aoData? I use alert(aoData) and I see: [Object object], Object object], Object object]...

Replies

  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    It is the parameters DataTables sends to the sever. To see, use `console.log( aoData )` and look at the browser's console.

    Allan
This discussion has been closed.