nCell is undefined

nCell is undefined

baronbaron Posts: 1Questions: 0Answers: 0
edited March 2012 in Bug reports
hello, I tried 1.9.0 and nightly build with jquery 1.7.

Using default options:
[code]
$('table.display').dataTable();
[/code]

Both Firefox and Chrome throw "nCell is undefined" on this line:
[code]
nCell.className += ' '+oCol.sClass;
[/code]

Any ideas?

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Seems to work just fine here: http://live.datatables.net/ulowaf/edit . Can you link to a test case please?

    Allan
  • ak4raak4ra Posts: 2Questions: 0Answers: 0
    Hi, having the same issue.. :/

    [code]nCell is undefined

    nCell.className += ' '+oCol.sClass; [/code]

    I'm using 1.9.2 dT and 1.7.1 jQ.... Any help is welcome ! ;)
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    As I mentioned in my previous post:

    > Can you link to a test case please?

    Allan
  • ak4raak4ra Posts: 2Questions: 0Answers: 0
    Sorry, I found out. It was just an issue with my table.
    The code you linked works perfectly ;)
  • l0b0l0b0 Posts: 1Questions: 0Answers: 0
    What was the table issue? I've got a similar issue: http://stackoverflow.com/questions/12472726/datatables-ncell-is-undefined-error-with-valid-xhtml
  • vbujakvbujak Posts: 0Questions: 0Answers: 0
    Hi,
    I am having same issue, but don't find any answer.
    What is strange - it doesn't work on pages it used to work on. However nothing has changed to table definition or html code.

    here is my html code:

    [code]


    <!-- list table ingredients-->





    ID
    Name
    Description
    Actions



    <?php if(!empty($groups_list)):?>
    <?php $i=0;?>
    <?php foreach($groups_list as $item):?>

    <?=$item['id']?>
    <?=$item['name']?>
    <?=$item['description']?>

    Edit
    Delete
    <?php $i++;?>

    <?php endforeach;?>
    <?php endif;?>



    ID
    Name
    Description
    Actions




    <!-- End .box -->
    <!-- End .span12 -->
    <!-- End .row-fluid -->
    [/code]

    and js:
    [code]
    $(document).ready(function() {

    //--------------- Data tables ------------------//
    //$('#groupsTable').dataTable();
    });

    [/code]

    the page stops loading on refresh and I get an issue in FF Console, which shows me an error here:

    /* Classes */
    if ( bClass )
    {
    nCell.className += ' '+oCol.sClass;
    }

    Can anyone help?
This discussion has been closed.