Multiple .dataTable(); calls breaks it.
Multiple .dataTable(); calls breaks it.
jmbuytaert
Posts: 2Questions: 0Answers: 0
I'm using jQuery to get the dataTables working, and it works fine when I'm only calling one of them. If I call the .dataTable(); function twice for different tables, it breaks.
If you look at the demo (see link below), you can see that I'm calling the .dataTable(); function twice. The first time is for a table that's on another page. I need to have separate dataTable(); functions called twice since they will have different sorting options.
If you remove the first dataTable(); function from the script, the second one will work.
Example: http://jsfiddle.net/q3F5m/
DataTables debugger link: http://debug.datatables.net/afogig
How can I make this work? Thanks for your help.
If you look at the demo (see link below), you can see that I'm calling the .dataTable(); function twice. The first time is for a table that's on another page. I need to have separate dataTable(); functions called twice since they will have different sorting options.
If you remove the first dataTable(); function from the script, the second one will work.
Example: http://jsfiddle.net/q3F5m/
DataTables debugger link: http://debug.datatables.net/afogig
How can I make this work? Thanks for your help.
This discussion has been closed.
Replies
The new API in 1.10 will be able to cope with this kind of thing, but the current API considers it to be an error.
Allan