Multiple tables with one fn.Filter()
Multiple tables with one fn.Filter()
Hey all!
Im dying here with a problem. I have this: fTable = $('.filter').dataTable({........}); and in my page there is a for{ } to create multiple tables with the class="filter". The problem is, in the for{ } I have a button to filter the table, something like this:
< ..... onclick="fTable.fnFilter('^'+'<%= menuRow.getTypeName() %>'+'$',1,true);">
because I need to filter the table by <%= menuRow.getTypeName() %> which changes in the for { }. I thought that line would change every table I have, but because I show only one, thats all I need. Is there a way to fn.Filter() multiple tables at once?
The console said this: TypeError: g is null
Sorry for my english :)
Laura
Im dying here with a problem. I have this: fTable = $('.filter').dataTable({........}); and in my page there is a for{ } to create multiple tables with the class="filter". The problem is, in the for{ } I have a button to filter the table, something like this:
< ..... onclick="fTable.fnFilter('^'+'<%= menuRow.getTypeName() %>'+'$',1,true);">
because I need to filter the table by <%= menuRow.getTypeName() %> which changes in the for { }. I thought that line would change every table I have, but because I show only one, thats all I need. Is there a way to fn.Filter() multiple tables at once?
The console said this: TypeError: g is null
Sorry for my english :)
Laura
This discussion has been closed.
Replies
I think fTable is a list and I need an instance, but I dont know how it works. fTable[i] wont work.
Only the last one is automatic.
Allan