Uncaught TypeError: Cannot read property 'aoData' of null

Uncaught TypeError: Cannot read property 'aoData' of null

Nick822Nick822 Posts: 3Questions: 0Answers: 0
edited November 2013 in DataTables 1.9
I have been trying various things today but made barely any progress. I keep getting this error (Uncaught TypeError: Cannot read property 'aoData' of null), but DataTables does work. I have 4 DataTables on the dashboard of a website. These DataTables work, but I do get this error. On another page I want to use DataTables it does not work.

I copy/pasted a table from the dashboard, but it does nothing apart from showing the same error.

http://live.datatables.net/ireciz/edit#javascript,html

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    There is no `#table_1` element on the page, so you are using API methods on a table that doesn't exist. If you use a table that does exist, it works fine: http://live.datatables.net/ireciz/2/edit

    Allan
  • Nick822Nick822 Posts: 3Questions: 0Answers: 0
    It does exist on my dashboard:
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Right - do all the other tables? Its difficult to say what the problem is without a link to a test case (the test case you did link to is now working :-) ).

    Allan
  • Nick822Nick822 Posts: 3Questions: 0Answers: 0
    Hi allan,

    I managed to get it working. Thanks for the effort!
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    What was the issue?
  • subhamsubham Posts: 1Questions: 0Answers: 0
    edited January 2014
    i am getting error when i am changing the data of the table
    Uncaught TypeError: Cannot read property 'aoData' of null
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    @subham - link to a test case showing the problem please.
This discussion has been closed.