DataTables 1.9.3 with jQuery 1.8.1 dies on a validated (XHTML 1.0 Transitional, ISO-8859-1 encoded) page where I’m trying to use it, with the following message at page ready:
TypeError: nCell is undefined
Is there perhaps a size limit to the tables DataTables can handle? It’s the biggest page I’ve tried yet, almost 700KB (mainly because of embedded styles), with one table of >520 lines and one with >160 lines. It also fails on a smaller version of the same table. Both tables have the sortable class, one contains checkboxes and the other contains radio buttons, and both have a single <thead> and <tbody> section. Unfortunately I can’t post the full page since the data is company internal, but I’ll try to create a minimal sample.
DataTables initialization code:
$(document).ready(function(){
$('.sortable').dataTable({
"aaSorting": [],
"bFilter": false,
"bInfo": false,
"bPaginate": false,
});
});
Turns out DataTables doesn’t know what to do with a
@colspanin the last line of the table – I had to move the contents of it outside the table, and remove the row, then it worked.