I am getting the error "cannot read property 'ntr' of undefined" when i perform mouseover function on a data-table when the data is not present. It works fine when the table is populated. The code is as follows:
$('#example_table tbody td').live('mouseover mouseout', function(event) {
if (event.type == 'mouseover') {// do something on mouseover
console.log('inside mouseover');
var iPos = oTable.fnGetPosition( this ); // getting error in this line
if(iPos!=null){
console.log(iPos);
var iCol= iPos [1];
}
}
});
What check should i do so that i dont get this error
Thanks