Version of the jsValidator
Settings
The standard message
The style of the message, any css/javascript style (eg. color, paddingLeft)
The style of the message, any css/javascript style (eg. color, paddingLeft)
The style of the message, any css/javascript style (eg. color, paddingLeft)
Initializes the validator
Add a validator to a field, checks if the field is correct and calls the message functions
Add more than one validators to a field.
Build the message and calls the function to show the message
You can override this function with your own function This function shows the message
: an instance of the message element
: the fieldname
This method hides the elemnt
: an instance of the message element
: the fieldname
An apart object for the validation objects
Validators.regex This method handles a custom regular expression
Validators.IsString() Any string that doesn't have control characters (ASCII 0 - 31) but spaces are allowed
value: The string to check
Validators._IsString() Public: same as IsString, only now the value is also valid if it is empty
value
Validators.IsAlpha() Public: only letters a-z and A-Z
value
Validators._IsAlpha() Public: same as IsAlpha, only now the value is also valid if it is empty
value
Validators.IsDigit() Public: only numbers 0-9
value
Validators._IsDigit() Public: same as IsDigit, only now the value is also valid if it is empty
$value
Validators.IsAlphaNum() Public: letters and numbers
value
Validators._IsAlphaNum() Public: same as IsAlphaNum, only now the value is also valid if it is empty
value
Validators.IsFloat() Public: only numbers 0-9 and an optional - (minus) sign (in the beginning only)
value
Validators._IsFloat() Public: same as IsFloat, only now the value is also valid if it is empty
value
Validators.IsInteger() Public: only numbers 0-9 and an optional - (minus) sign (in the beginning only)
$value
Validators._IsInteger() Public: same as IsInteger, only now the value is also valid if it is empty
value
Validators.IsFilename() Public: a valid file name (including dots but no slashes and other forbidden characters)
value
Validators._IsFilename() Public: same as IsFilename, only now the value is also valid if it is empty
value
Validators.IsBool() Public: a boolean (case-insensitive "true"/"1" or "false"/"0")
value
Validators._IsBool() Public: same as IsBool, only now the value is also valid if it is empty
value
a valid variable name (letters, digits, underscore)
same as IsVariabele, only now the value is also valid if it is empty
value
a valid password (alphanumberic + some other characters but no spaces. Only allow ASCII 33 - 126)
same as IsVariabele, only now the value is also valid if it is empty
value
check for a valid url
same as IsURL, only now the value is also valid if it is empty
value
a valid email address (only checks for valid format: xxx@xxx.xxx)
same as IsEmail, only now the value is also valid if it is empty
value
like IsString, but newline characters and tabs are allowed
same as IsText, only now the value is also valid if it is empty
value
Check if the value does not contain any HTML
same as NoHTML, only now the value is also valid if it is empty
value
is a valid dutch postcode (eg. 9999 AA)
same as IsPostcode, only now the value is also valid if it is empty
value
is a valid dutch phone-number
same as IsPhone, only now the value is also valid if it is empty
value
check if it's a valid ip adres
same as IsIp, only now the value is also valid if it is empty
value