nThs[i - iCorrector] is undefined

nThs[i - iCorrector] is undefined

anjibmananjibman Posts: 115Questions: 10Answers: 0
edited October 2011 in General
Hi

I am using DataTable 1.8.2 and initializing my table with
[code]
$(document).ready(function(){
$('#example').dataTable({
"iDisplayLength": 25,
"aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "showall.do?days=30",
"aoColumns": [
{ "mDataProp": "date" },
{ "mDataProp": "destinationAgent" },
{ "mDataProp": "destinationFileName" },
{ "mDataProp": "fileSize" },
{ "mDataProp": "result" },
{ "mDataProp": "sourceAgent" },
{ "mDataProp": "sourceFileName" },
{ "mDataProp": "status" },
{ "mDataProp": "time" },

]
});
});
[/code]

When I run my page I am not getting any result but I have nThs[i - iCorrector] is undefined error in Firebug console.
can anyone tell me what this error mean?

Replies

  • espringerespringer Posts: 2Questions: 0Answers: 0
    Hey - I had this error as well today and was able to resolve the issue. I had added another column in my data table definition which was hidden. However, I neglected to add another within my html table structure to accommodate for the column, even though it was hidden.

    I think the solution is to check to make sure you have the correct number of cells in your html "#example" table.
This discussion has been closed.