How to realise custom filtering with server side procesing?
How to realise custom filtering with server side procesing?
Hello i have a big dbs o front end processing is out of question.
I found this http://www.datatables.net/release-datatables/examples/plug-ins/range_filtering.html example where you can add custom filters for the tables, but i need to realize this with server side processing and i need custom positioning of it. Can someone help me out pls??
All i need to know is how to pass the custom filters so they reach the server, and how to set the names of the variables which reach the server.
http://www.datatables.net/release-datatables/examples/data_sources/server_side.html
I will completly rewrite the server side procesing so it fits my framework, but i need a way to push the custom filters to the server with each refresh of the table.
I found this http://www.datatables.net/release-datatables/examples/plug-ins/range_filtering.html example where you can add custom filters for the tables, but i need to realize this with server side processing and i need custom positioning of it. Can someone help me out pls??
All i need to know is how to pass the custom filters so they reach the server, and how to set the names of the variables which reach the server.
http://www.datatables.net/release-datatables/examples/data_sources/server_side.html
I will completly rewrite the server side procesing so it fits my framework, but i need a way to push the custom filters to the server with each refresh of the table.
This discussion has been closed.
Replies
[code]/* POST data to server */
$(document).ready(function() {
$('#example').dataTable( {
"sAjaxSource": "data_source.php",
"fnServerData": function ( sSource, aoData, fnCallback ) {
/* Add some data to send to the source, and send as 'POST' */
aoData.push( { "name": "my_field", "value": "my_value" } );
$.ajax( {
"dataType": 'json',
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
} );
}
} );
} );
[/code]
Man this stuff is so easy to do :)
Great job with it!!!!!!! I love it!!!!!
I am not the author, or affiliated with the product. This is an honest endorsement.