Line 6542 - Cannot read property 'asSorting' of undefined (Chrome)

Line 6542 - Cannot read property 'asSorting' of undefined (Chrome)

BabyAzertyBabyAzerty Posts: 4Questions: 0Answers: 0
edited July 2012 in General
Hello,

I am having troubles with line 6542 (which is [code] var oColumn = oSettings.aoColumns[ oSettings.aaSorting[i][0] ]; [/code]), on Chrome and Firefox, I get this

oColumn: undefined
oSettings: Object

with oSettings having an empty aoColumns.

My table is as simple as this
[code]


Table Cell
Table Cello


a
b


e
frzeqf


[/code]
And js is like this :

[code]
oTable = $('#example').dataTable({
"bJQueryUI": true
});
[/code]

Thanks

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    You must use a THEAD and TBODY in the table, as noted in the documentation of prerequisites for DataTables usage: http://datatables.net/usage/#prerequisites

    Allan
  • BabyAzertyBabyAzerty Posts: 4Questions: 0Answers: 0
    Omg ! I should hang myself for being such a dumb !
    Thank you allan !
This discussion has been closed.