I get the error message "I cannot read the ntr property from undefined" when I execute the mouseover function on the data table when there is no data. It works great when filling out a table. 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 don't get this error
thanks
source share