Hi, I need to execute an entire javascript function.
Found what i was doing wrong:
var edit = igedit_getById("FG2100RefNo");
var editText = edit.getText();
alert(!isNaN(editText));
But this only checks & displays a message box.
I need to execute the below javascript:
<SCRIPT language=Javascript>
<!--
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
//-->
onkeypress="return isNumberKey(event)"
How do i do this with the webtextedit:
var edit = igedit_getById("FG2100RefNo");
var editText = edit.getText();
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57)) return false;
return true;
}
return isNumberKey(editText)
I only have the onkey event property value to insert the code!
Please Assist