how to filter the data tables columns using check box, price slider with dynamically

how to filter the data tables columns using check box, price slider with dynamically

vetrivelvetrivel Posts: 2Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
i m new to data table , but its very useful for every developer, its saves my lot of valuable time, i have one doutb on that, how to filter the each column using different form elements (like textbox with autocomplete, dropdown, price silder, check box) with dynamic content.. i have seen lot of client side examples, but i need server side examples... using php...
[code]
$(document).ready(function() {
oTable1 = $('#oneway_output').dataTable( {
"oLanguage": {
"sEmptyTable": "Sorry

No buses available for this route right now. Please try again"
},
"aoColumns": [

null,
{"bVisible":false},
null,
null,
null,
null,
null,

null,



],
"sAjaxSource": "getallsource.php",
"sProcessing": true,
"bPaginate": false,
"bFilter": false,
"bAutoWidth": true,
"sServerMethod": "POST",
"bScrollCollapse": true,
"sDom": '<"top"i>W<"clear">lfrtip',
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "source", "value": "<?php echo $source;?>" } );
aoData.push( { "name": "destination", "value": "<?php echo $destination;?>" } );
aoData.push( { "name": "doj", "value": "<?php echo $doj;?>" } );
aoData.push( { "name": "triptype", "value": "<?php echo $trip_type;?>" } );
},
"oColumnFilterWidgets": {
"aiExclude": [0,1,2,3,4,5,6,7,8,9,10,11]
},
"fnInitComplete": function() {
$('#iniContent').hide();
}





} );
} );

[/code]

pls help me guys..

thanks in advance

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Sorry, this isn't a PHP forum. If you require help getting started with PHP then you might want to ask in StackOverflow or similar.

    Allan
  • vetrivelvetrivel Posts: 2Questions: 0Answers: 0
    thanks for your quick response allan...
This discussion has been closed.