Toggling between different tables
Toggling between different tables
I would like to have a drop down of table names and based on the users selection switch the table currently being displayed. Currently I have one table showing (using server-side processing) , I have the drop down graphically there however not quite sure how to hook it up with DataTables.
I need to somehow pass a variable to server_processing.php containing the new tables name. Not sure how or if possible to add the call below:
$(document).ready(function(){
$('#the_table').dataTable({
'bProcessing':true,
'bServerSide':true,
'sAjaxSource':'server_processing.php'
}).fnSetFilteringDelay();
});
Any help appreciated,
Marina
I need to somehow pass a variable to server_processing.php containing the new tables name. Not sure how or if possible to add the call below:
$(document).ready(function(){
$('#the_table').dataTable({
'bProcessing':true,
'bServerSide':true,
'sAjaxSource':'server_processing.php'
}).fnSetFilteringDelay();
});
Any help appreciated,
Marina
This discussion has been closed.
Replies
Allan