|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/betterpi/Old Site/fckedi0r/editor/dialog/common/ |
Upload File : |
<?xml version="1.0" encoding="utf-8" ?> <bindings xmlns="http://www.mozilla.org/xbl"> <binding id="numericfield"> <implementation> <constructor> this.keypress = CheckIsDigit ; </constructor> <method name="CheckIsDigit"> <body> <![CDATA[ var iCode = keyCode ; var bAccepted = ( ( iCode >= 48 && iCode <= 57 ) // Numbers || (iCode >= 37 && iCode <= 40) // Arrows || iCode == 8 // Backspace || iCode == 46 // Delete ) ; return bAccepted ; ]]> </body> </method> </implementation> <events> <event type="keypress" value="CheckIsDigit()" /> </events> </binding> </bindings>