fnFilter doesn't work
fnFilter doesn't work
Hello,
I have in my foot on dataTable a input like the example http://www.datatables.net/release-datatables/examples/api/multi_filter.html but, it doesn't work fine...
I use codeigniter and server-side processing. I show you my javascript code:
[code]
oTable = $('#tablaRegistros').dataTable({
"bProcessing": false,
"bServerSide": true,
"sServerMethod": "POST",
"sAjaxSource": "http://localhost/imareal/especie/getTable",
"iDisplayLength": 20,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"aaSorting": [[0, 'asc']],
"aoColumns": [
{ "bVisible": true, "bSearchable": true, "bSortable": true },
{ "bVisible": true, "bSearchable": true, "bSortable": true },
{ "bVisible": true, "bSearchable": true, "bSortable": true }
]
}).fnSetFilteringDelay(700);
$('tfoot input').keyup(function(){
oTable.fnFilter($(this).val(),$("tfoot input").index(this));
});
[/code]
but when I write in the input does anything... why?? Idea???
Thanks! :)
I have in my foot on dataTable a input like the example http://www.datatables.net/release-datatables/examples/api/multi_filter.html but, it doesn't work fine...
I use codeigniter and server-side processing. I show you my javascript code:
[code]
oTable = $('#tablaRegistros').dataTable({
"bProcessing": false,
"bServerSide": true,
"sServerMethod": "POST",
"sAjaxSource": "http://localhost/imareal/especie/getTable",
"iDisplayLength": 20,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"aaSorting": [[0, 'asc']],
"aoColumns": [
{ "bVisible": true, "bSearchable": true, "bSortable": true },
{ "bVisible": true, "bSearchable": true, "bSortable": true },
{ "bVisible": true, "bSearchable": true, "bSortable": true }
]
}).fnSetFilteringDelay(700);
$('tfoot input').keyup(function(){
oTable.fnFilter($(this).val(),$("tfoot input").index(this));
});
[/code]
but when I write in the input does anything... why?? Idea???
Thanks! :)
This discussion has been closed.
Replies
Allan