nCell object does not exist on line 669 (DataTables 1.9.4)

nCell object does not exist on line 669 (DataTables 1.9.4)

RemiDGRemiDG Posts: 15Questions: 0Answers: 0
edited March 2013 in General
This only occurs in IE8 (Maybe lower too?), and not in any other major browser: For some reason this nCell object does not exist when creating a new DataTable. We placed an alert above this line and outputted nCell. It does output an HTML element a lot of times, and then suddenly, an undefined one. We have no clue how this can happen.

HTML: http://pastebin.com/zmuMVm2q
JavaScript: http://pastebin.com/K36TSihK

Weird thing is that this only happens with out datatables. The demo has no problems..

Replies

  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    Can you link to a live test case showing the problem please? I don't immediately see anything wrong with your code.

    Allan
  • RemiDGRemiDG Posts: 15Questions: 0Answers: 0
    Yeah sure, I made a small page with only the necessary data:
    https://dl.dropbox.com/u/51741996/datatables_error_demo/index.html

    Note that I have made a PHP script to generate both the JS and HTML code. That's why the JS code also defaults what's already default :P
  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    I haven't forgotten about this. I just need to get my hands on an IE8 machine.

    Allan
  • RemiDGRemiDG Posts: 15Questions: 0Answers: 0
    edited March 2013
    Could this be a bug in the DataTables library? Would be strange tho, as the demo on the homepage does work properly.
  • RemiDGRemiDG Posts: 15Questions: 0Answers: 0
    I'm sorry for bumping already, but we are quite in a hurry right now. We need a fix as soon as possible :/
  • allanallan Posts: 63,277Questions: 1Answers: 10,424 Site admin
    You've got a trailing comma at the end of your aoColumns array. Not a bug in DataTables :-).

    Allan
  • RemiDGRemiDG Posts: 15Questions: 0Answers: 0
    edited March 2013
    Lmfao! That's the craziest thing I've seen lately. Trailing comma's shouldnt matter D: Silly Internet Explorer :P Thanks a lot!
This discussion has been closed.