nCell is undefined
nCell is undefined
baron
Posts: 1Questions: 0Answers: 0
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?
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?
This discussion has been closed.
Replies
Allan
[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 ! ;)
> Can you link to a test case please?
Allan
The code you linked works perfectly ;)
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?