Unexplained dataTables error

Unexplained dataTables error

SetekSetek Posts: 4Questions: 0Answers: 0
edited August 2013 in Bug reports
Here's my code: http://jsfiddle.net/teFcW/

I've used HTML validator to validate the HTML, as I thought there was an error in the table, but it's validating fine.

When I remove ... 90% of the contents of , the dataTable works, which made me think it might have something to do with a limit on the size of a table, but I'm not sure.

The error I get is:

Uncaught TypeError: Cannot read property 'className' of undefined jquery.dataTables.min.js:27
ua jquery.dataTables.min.js:27
(anonymous function) jquery.dataTables.min.js:127
p.extend.each jquery.js:2
p.fn.p.each jquery.js:2
j jquery.dataTables.min.js:116
(anonymous function)
k jquery.js:2
l.add jquery.js:2
p.fn.p.ready jquery.js:2
p.fn.p.init jquery.js:2
p jquery.js:2
(anonymous function)
(anonymous function) jquery.js:2
p.extend.globalEval jquery.js:2
(anonymous function) jquery.js:2
p.extend.each jquery.js:2
p.fn.extend.domManip jquery.js:2
p.fn.extend.append jquery.js:2
(anonymous function) jquery.js:2
p.extend.access jquery.js:2
p.fn.extend.html jquery.js:2
(anonymous function) jquery.js:2
k jquery.js:2
l.fireWith jquery.js:2
y jquery.js:2
d jquery.js:2

And the dataTables don't ... dataTable. A class is added onto the of "dataTable", but it doesn't complete the process.

I have no idea why it doesn't work. The exact same JS for a different page's dataTable works fine:



  • allanallan Posts: 61,585Questions: 1Answers: 10,084 Site admin

    Every column in the table _must_ have a unique header cell (i.e. one without a colspan).

  • SetekSetek Posts: 4Questions: 0Answers: 0
    Hi Allan,

    Oh! Okay, thanks!
This discussion has been closed.