How do I retrieve variables sent with fnServerParams to the server?
How do I retrieve variables sent with fnServerParams to the server?
![spooky655](https://secure.gravatar.com/avatar/cf813ba653991899905f72b3612e908a/?default=https%3A%2F%2Fvanillicon.com%2Fcf813ba653991899905f72b3612e908a_200.png&rating=g&size=120)
I am using dataTables 1.9.1. I want to filter my datatable by a variable I specify in javascript. I am using the following code:
oDataTable = $('#datatable').dataTable( {
...
"bProcessing": true,
"bServerSide": true,
...
'sAjaxSource': 'ajax-getdatatable.php',
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "column_name", "value": "column_value" } );
},
...
} );
How do I access "column_value" in "ajax-getdatatable.php", which queries my database?
This discussion has been closed.