nThs is null - Error message
nThs is null - Error message
Hello,
I'm using datatables 1.6.2 in one of my web applications.
When I'm trying to display HTML tables, using dataTables, I get the foll: error message:
nThs is null
for(i=0,iLen=bUseCols?oInit.aoColumns....Col=bUseCols?oInit.aoColumns[i]:null;
which points to line 576 on jquery.dataTables.min.js
Any idea what I'm doing wrong?
Thanks,
Pritish.
I'm using datatables 1.6.2 in one of my web applications.
When I'm trying to display HTML tables, using dataTables, I get the foll: error message:
nThs is null
for(i=0,iLen=bUseCols?oInit.aoColumns....Col=bUseCols?oInit.aoColumns[i]:null;
which points to line 576 on jquery.dataTables.min.js
Any idea what I'm doing wrong?
Thanks,
Pritish.
This discussion has been closed.
Replies
$("#id_of_the_table").dataTable({
"aaSorting": [[ 2, "desc" ]],
"iDisplayLength" : 25,
"sPaginationType" : "full_numbers",
"sDom": '<"top"lpf>t<"bottom"ip><"clear">',
"bAutoWidth" : false
});
I think it is because of the columns length which is undefined
If none of that helps, then perhaps you can post a link which would make it easier :-)
Allan