Trouble with fnServerParams
Trouble with fnServerParams
don
Posts: 2Questions: 0Answers: 0
Hi,
I'm new to DataTables, so the problem is probably mine. I'm using the following in the js, using the example, custom_vars.html, as a guide
$(document).ready(function() {
$('#example').dataTable( {
"sScrollY": "300px",
"bProcessing": true,
"sServerMethod": "POST",
"sAjaxSource": 'NewCompData.php',
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "more_data", "value": "my_value" } );
}
} );
} );
and trying to capture the parameters in NewCompData.php with $newparams = $_POST(aoData);
I get an error in the foxfire debugger saying json is null on line 8686 of jquery.dataTables.js. I'm using dataTables version 1.9.3
Any help setting me on the right path would be appreciated.
Thanks
Don
I'm new to DataTables, so the problem is probably mine. I'm using the following in the js, using the example, custom_vars.html, as a guide
$(document).ready(function() {
$('#example').dataTable( {
"sScrollY": "300px",
"bProcessing": true,
"sServerMethod": "POST",
"sAjaxSource": 'NewCompData.php',
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "more_data", "value": "my_value" } );
}
} );
} );
and trying to capture the parameters in NewCompData.php with $newparams = $_POST(aoData);
I get an error in the foxfire debugger saying json is null on line 8686 of jquery.dataTables.js. I'm using dataTables version 1.9.3
Any help setting me on the right path would be appreciated.
Thanks
Don
This discussion has been closed.
Replies
Don