Minor correction to example

Minor correction to example

pwc1011pwc1011 Posts: 62Questions: 0Answers: 0
edited March 2010 in General
Hello Allan,

I think there is a minor mistake in the example on adding additional HTTP values.

Here is a copy of the code from the example.

[code]
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../examples_support/server_processing.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some extra data to the sender */
aoData.push( { "name": "more_data", "value": "my_value" } );
$.getJSON( sSource, aoData, function (json) {
/* Do whatever additional processing you want on the callback, then tell DataTables */
fnCallback(json)
} );
}
} );
} );
[/code]

I think you need a semicolon after "fnCallback(json)"

Patrick
This discussion has been closed.