Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

X NUMBER MASK OBJECT

The X Number Mask object allows numeric fields to be created, from an entry field in a normal html form. When invalid data is entered it is cleared and when the maximum number of numbers is reached or when letters are about to be entered they are prevented. The mistakes that are made are displayed on the status bar.
This input field will only accept 9 integer numbers. (try it).

This input field will only accept 5 integer numbers. (try it).

This input field will only accept 9 integer numbers and 2 decimals (try it).

This input field will only accept 5 integer numbers and 4 decimals . (try it).

The object is customizable, the following attributes can be set:

  1. Number of numbers entry field must not exceed.
  2. Number of decimal numbers entry field must not exceed. (May be 0)
  3. wether the entry field should be activated upon creation.

Call construtor xNumberMask(txtBox,lLimit,blnDoNotActivate) in xNumberMask.js and pass it a reference to the entry field (txtBox) the (lLimit) and a boolean indicating wether it should be activated immideitly or not.

Call xNumberMask's activate method to start monitoring and validating the data entered into the entry field.

If no limit is given then the size property of the entry field is used.

This version supports flo

Code!


xLayer in Action| Fixed Position Javascript Object| Toolbar Object| Menu Object| Restricted Area Object| Animated Button Object| Drag Object| Internal Frame Object| Number Mask Object| Sound Object

You may use this javascript for free!
Home