IE8: undefined is null or not an object - inside "single loop to rule them all"
IE8: undefined is null or not an object - inside "single loop to rule them all"
I'm sitting over this for a while now. I'm trying to get datatables to run inside a Jquery Mobile page (JQM 1.0.1., Jquery 1.7.1).
The datatables I plugged into the page works across latest browsers and on mobile devices. But IE8 is killing me...
I'm using two datatables inside my page. The 2nd one will only be initiated when the user navigates to the respective page section.
This is when I'm getting the above error "undefined is null or not an object" inside the "single loop to rule them all" on this line:
if ( bClass )
{
nCell.className += ' '+oCol.sClass;
}
It seems nCell is not defined.
Any clue what might be causing this?
Thanks for pointers.
The datatables I plugged into the page works across latest browsers and on mobile devices. But IE8 is killing me...
I'm using two datatables inside my page. The 2nd one will only be initiated when the user navigates to the respective page section.
This is when I'm getting the above error "undefined is null or not an object" inside the "single loop to rule them all" on this line:
if ( bClass )
{
nCell.className += ' '+oCol.sClass;
}
It seems nCell is not defined.
Any clue what might be causing this?
Thanks for pointers.
This discussion has been closed.
Replies
Allan
Allan
[code]
"aoColumns": [
{
"bVisible":false,
"bSearchable" : false
}, <--- Extra comma will cause extra row(undefined on nCell) in Chrome and IE 8
],
[/code]
Your issues may not be related to this but I thought this could help some people with the 'undefined is null or not an object' error on nCell
Odd thing that error happens not all the time and so far only for one dataset, while others are ok
Allan