datatables not filtering on 13 number

datatables not filtering on 13 number

ugo1ugo1 Posts: 4Questions: 0Answers: 0
edited November 2013 in DataTables 1.9
In a recent post I read that is possible filering the table data on tab panel name

[code]

<!DOCTYPE html>








<!-- no cache headers -->



<!-- end no cache headers -->

<!-- Styles -->





<!-- Styles -->





<!-- Jquery javascript -->




<!-- Jquery-ui javascript -->




<!-- Datatables javascript -->





$(document).ready(function () {
$.getJSON('santa_caterina_valfurva_tab.php', function(giorni){
$('#tabs ul:first li:eq(0) a').text(giorni[0]);
$('#tabs ul:first li:eq(1) a').text(giorni[1]);
$('#tabs ul:first li:eq(2) a').text(giorni[2]);
$('#tabs ul:first li:eq(3) a').text(giorni[3]);
$('#tabs ul:first li:eq(4) a').text(giorni[4]);
$('#tabs ul:first li:eq(5) a').text(giorni[5]);
$('#tabs ul:first li:eq(6) a').text(giorni[6]);
$('#tabs ul:first li:eq(7) a').text(giorni[7]);
$('#tabs ul:first li:eq(8) a').text(giorni[8]);
});


});

$(document).ready(function() {


$( "#tabs" ).tabs({

select: function(event, ui) {
oTable.fnFilter(ui.tab.innerHTML,0,false); // apply the table filter based on tab name
$('#dataTable').appendTo(ui.panel); // move the table into the selected tab panel
}

});
oTable = $('#dataTable').dataTable({
"fnDrawCallback": function ( oSettings ) {
if ( oSettings.aiDisplay.length == 0 ) {
return;
}
var nTrs = $('#dataTable tbody tr');
var iColspan = nTrs[0].getElementsByTagName('td').length;
var sLastGroup = "";
for ( var i=0 ; i
This discussion has been closed.