Hi, I need help please.
I have a javascript function within a xslt file.
On my dev tool, I have a WebTextEdit box with the properties & events. on the KeyPress event i want to add the javascript function IsNumeric().
var edit = igedit_getById("FG2100RefNo"); IsNumeric(edit);
but i get the the error: can't eval.
Please Assist, Regards!
Totally Lost, i don't know this at all.
Regards
Hello,
Sorry if this sounds confusing - it is just how our CSOM (client side object model works). For your convenience I have created a complete working sample of WebTextEdit not accepting anything but numbers:
<script type="text/javascript"> function keyPress(oEdit, charCode, oEvent) { // ignore the "0" character if (charCode > 31 && (charCode < 48 || charCode > 57)) oEvent.cancel = true; } </script> <igtxt:WebTextEdit ID="WebTextEdit1" runat="server"> <ClientSideEvents KeyPress="keyPress" /> </igtxt:WebTextEdit>