Microsoft JScript runtime error: 'length' is null or not an object
Microsoft JScript runtime error: 'length' is null or not an object
I have a custom filter that I want to apply that works as long as there are rowns returned from the search. If there are no rows returned I get JScript error:
Microsoft JScript runtime error: 'length' is null or not an object
on this code...
$.fn.dataTableExt.aTypes = [
/*
* Function: -
* Purpose: Check to see if a string is numeric
* Returns: string:'numeric' or null
* Inputs: string:sText - string to check
*/
function ( sData )
{
var sValidChars = "0123456789.-";
var Char;
for ( i=0 ; i
Microsoft JScript runtime error: 'length' is null or not an object
on this code...
$.fn.dataTableExt.aTypes = [
/*
* Function: -
* Purpose: Check to see if a string is numeric
* Returns: string:'numeric' or null
* Inputs: string:sText - string to check
*/
function ( sData )
{
var sValidChars = "0123456789.-";
var Char;
for ( i=0 ; i
This discussion has been closed.
Replies
You could just add a 'sanity' check into your code - something like:
[code]
if ( typeof sData != 'string' )
{
return null;
}
[/code]
How does that sound?
Regards,
Allan