aData is undefined in datatables - tried everything on the forums here - none worked. Help plz?

aData is undefined in datatables - tried everything on the forums here - none worked. Help plz?

sridhar1982sridhar1982 Posts: 3Questions: 0Answers: 0
edited April 2014 in DataTables 1.9
I am using `1.9.4 -jquery.dataTables.js`. I get `aData is undefined` error. I have seen several posts that on this issue, I tried everything but none helped.

My `JSON object` that is returned is what datatables expects. it has "aaData" field which is an array of arrays. I am trying out with only one column to fix the bug.

I get a pop-up error-message on the browser

DataTables warning (table id = 'search_table'): list index out of rangelist index out of range

In the firebug console, I see

aData is undefined in 2038 at jquery.dataTable.js

for ( var i=0, iLen=aData.length ; i

Replies

  • jjwillemenjjwillemen Posts: 3Questions: 0Answers: 0
    Is it really your intention that so many lines in your script are // commented out?
  • sridhar1982sridhar1982 Posts: 3Questions: 0Answers: 0
    Thats so many things I tried out since different posts suggest various things
  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    1. Please do not post duplicate posts
    2. Please link to test cases

    These are the two forum rules. Please follow them.

    I've deleted one of your other duplicates, and I've already commented on this one: http://datatables.net/forums/discussion/20408 . I'll leave this one as well due to feedback from jjwillemen.

    Please link to a test case if you would like assistance.

    Allan
This discussion has been closed.