What is aoData

What is aoData

bluesapphirebluesapphire Posts: 17Questions: 0Answers: 0
edited February 2011 in General
I have seen following example:
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../examples_support/server_processing_post.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
} );
} );
[/code]

Can you guide me where and how can I get value of 'oaData'. Because when I run this example laocally, it doesn't show oaData variables in FIREBUG.

Thanks in advance

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    aoData (not oaData has you have written in your post) in this case is the second parameter that is passed into fnServerData: http://datatables.net/usage/callbacks#fnServerData . As the documentation notes this is the key/value list of parameters are to be sent to the server for data processing. It is an array of objects, so you could add console.dir( aoData ); to see what the values are. The key / values are all described here: http://datatables.net/usage/server-side .

    Allan
This discussion has been closed.