function IsNumeric(inputVal,sErrorMsg) {I also used such approach, but I don't like it anymore
if (isNaN(parseFloat(inputVal))) {
alert(sErrorMsg)
return false;
}
return true
}
function IsNumeric(expression) {
var nums = "0123456789";
if (expression.length==0)return(false);
for (var n=0; n <>
if(nums.indexOf(expression.charAt(n))==-1)return(false);
}
return(true);
}
2 comments :
Also see this post for Lotus Domino based web sites.
Post a Comment