I am integrating jquery datatable to my project. When call is made to service, some how following error is error thrown
cannot read property 'assorting' of undefined
Here is the code
Timeline
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/jquery.dataTables.js"></script>
<body>
<script>
$(document).ready( function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "URL",
"fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
console.log(aoData);
oSettings.jqXHR = $.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
} );
} );
</script>
<div id="dvContent">
<table cellpadding="0" cellspacing="0" border="0" id="example">
</table>
</div>
</body>
Here is the Sample out put of the server
{"some":"yyy", "open":null, "program":1, "more":"must", "comment":000 }
assorting..paste that code..