Data Validation class

by Sitebase

The key to a stable and secure application or website is data validation. Validating things like email addresses, numbers, and other data can be very time consuming and add a lot of extra lines of code to your website if you want to do it the right way. This class can make the data validation part of website development a lot easier.

This class is very easy to use. Because all the methods are static they are faster and callable without instantiating the class. This means that you only need to include the class file in your code and you can start validating data.

This class can be used in flash and flex applications.

Easy to use

Because the all the validation methods are static it’s very easy to use this class

Email validation
Validator.Email("www.test.com");
Email validation but don’t allow .be and .nl domains
Validator.Url("www.test.com", [".be", ".nl"]);
Input must be numeric and be bigger than 18 and smaller than 40
Validator.Number(textinput.text, 40, 18);

Features

  • Email
  • Url
  • IP
  • Phone numbers
  • Number (optitional use of min and/or max)
  • Unsigned number
  • Alpha
  • Alpha numeric
  • String length
  • Hexcolor
  • Date

$9

Prepaid customers
pay just $7 - how? Prepay Your Account With our deposit system not only will purchasing be much faster, but we’ll also take $2 off the price! Find Out More Price

You must sign in or sign up to purchase this item.

Purchase 5 purchases

Sitebase

Sitebase

Exclusive Author Item was Featured Author was Featured Author had a Free File of the Month Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items Belgium
File Types Included
Flash CS3 (9+), Flash CS4 (10+) ActionScript AS
Item Attributes
Created 1 February 10
Published Size 6kb
Resolution N/A
ActionScript Version AS3
Documentation Well Documented
Flash Files Included ActionScript AS
Collections that include this item