filtering not working by default?

filtering not working by default?

xmikewxmikew Posts: 3Questions: 0Answers: 0
edited May 2013 in DataTables 1.9
I have a Search box displayed above my table by default. When I type something into the search box, no filtering happens.
What am I missing?

[code]




[/code]



In my code:
[code]
$('#table_results').dataTable({
"bPaginate": false,
"bInfo": false,
"aoColumns": [
{ "sType": "string" },
null,
null,
{ "sType": "numeric-comma" },
{ "sType": "numeric-comma" },
{ "sType": "numeric-comma" },
{ "sType": "numeric-comma" },
{ "sType": "numeric-comma" },
null,
null,
]
});
[/code]

Thanks for any assistance. Driving me nuts and I know i'm just doing something stupid. Sorting is working fine...

Replies

  • essexstephessexsteph Posts: 57Questions: 0Answers: 0
    It may be as simple as the final trailing comma after the last null - some browsers are happy with it (Chrome), others will decide it's not valid JS (IE).

    Steph
  • xmikewxmikew Posts: 3Questions: 0Answers: 0
    I was using a jquery-hotkeys-plugin as well which made it not work. Removed that and it works as expected.
This discussion has been closed.