page with 2 datatables, the second table error in IE.

page with 2 datatables, the second table error in IE.

piggy181piggy181 Posts: 3Questions: 0Answers: 0
edited December 2010 in General
==========
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Timestamp: Fri, 24 Dec 2010 07:38:45 UTC


Message: 'g.aoColumnDefs[...].aTargets' is null or not an object
Line: 139
Char: 395
Code: 0
URI: http://192.168.178.87:8080/MyApp/js/jquery.dataTables.min.js
===============

The above error is what i receive when i load the page into IE starting from IE 6 up to 8. I notice that the error only occurs on page with 2 datatables, and it happens on the second table which cause it not to render properly while the first table is rendered fine.

In other browsers, everything is working.

Help me please!

piggy181,

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    Which version of DataTables are you using and can you post your initialisation code please? I would guess that you've got a trailing comma somewhere, which IE objects to.

    Allan
  • piggy181piggy181 Posts: 3Questions: 0Answers: 0
    You're right allan. I really have an additional comma. Thanks. Great response.

    Merry Christmas!!!!
  • pitervergarapitervergara Posts: 2Questions: 1Answers: 0
    I had exactly the same problem in IE 8. I had only one table with data loaded from server. My mistake was the same: an extra comma in the "aoColumnDefs" parameter... Thanks for the tip!
  • deepu26deepu26 Posts: 1Questions: 0Answers: 0
    thanks allan giving your suggestion, me also facing same problem
  • GnobarElGnobarEl Posts: 2Questions: 0Answers: 0
    thanks for your support! that helped me getting it corrected.
This discussion has been closed.