Search query in serverSide mode

Search query in serverSide mode

iconofsiniconofsin Posts: 3Questions: 3Answers: 0

When in server side mode if when the table is initially drawn a custom search query is sent to the back end
like so

$('#example').DataTable( {
"processing": true,
"serverSide": true,
"ajax": {
"url": "scripts/server_processing.php",
"data": {
"searchQuery" : "red cars"
}
}
} );

How do i make sure that any ajax requests made for pagination also include the exact same query?

This discussion has been closed.