Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F15612914
moz-bindings.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
711 B
Referenced Files
None
Subscribers
None
moz-bindings.xml
View Options
<?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>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Wed, Nov 25, 20:44 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25383
Default Alt Text
moz-bindings.xml (711 B)
Attached To
Mode
rZED Zed
Attached
Detach File
Event Timeline
Log In to Comment