Class Index | File Index

Classes


Namespace alv.validators

Validators module.
Defined in: jquery.alv.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
alv.validators.isAlphanumeric(pVal)
Check whether a value contains only alphanumeric characters.
<static>  
alv.validators.isDate(pVal, pDateFormat)
Check whether a value is a valid date.
<static>  
alv.validators.isDigit(pVal)
Check whether a value contains only digit characters.
<static>  
alv.validators.isEmail(pVal)
Check whether a value is a valid e-mail address.
<static>  
alv.validators.isEmpty(pVal)
Check whether a value is empty.
<static>  
alv.validators.isEqual(pVal, pVal2)
Check for equality between two values.
<static>  
alv.validators.isNumber(pVal)
Check whether a value is a valid number.
<static>  
alv.validators.isUrl(pVal)
Check whether a value is a valid URL.
<static>  
alv.validators.maxCheck(pChoices, pMax)
Check whether the amount of selected checkboxes is not higher than pMax.
<static>  
alv.validators.maxDate(pVal, pMax, pDateFormat)
Check whether a date does not lie after pMax.
<static>  
alv.validators.maxLength(pVal, pMax)
Check whether the character length of a value is not higher than pMax.
<static>  
alv.validators.maxNumber(pVal, pMax)
Check whether a numeric value is not higher than pMax.
<static>  
alv.validators.minCheck(pChoices, pMin, pEmptyAllowed)
Check whether the amount of selected checkboxes is not lower than pMin.
<static>  
alv.validators.minDate(pVal, pMin, pDateFormat)
Check whether a date does not lie before pMin.
<static>  
alv.validators.minLength(pVal, pMin)
Check whether the character length of a value is not lower than pMin.
<static>  
alv.validators.minNumber(pVal, pMin)
Check whether a numeric value is not lower than pMin.
<static>  
alv.validators.rangeCheck(pChoices, pMin, pMax)
Check whether the amount of selected checkboxes lies pMin and pMax.
<static>  
alv.validators.rangeDate(pVal, pMin, pMax, pDateFormat)
Check whether a date lies between pMin and pMax.
<static>  
alv.validators.rangeLength(pVal, pMin, pMax)
Check whether the character length of a value lies between pMin and pMax.
<static>  
alv.validators.rangeNumber(pVal, pMin, pMax)
Check whether a numeric value lies between pMin and pMax.
<static>  
alv.validators.regex(pVal, pRegex)
Check whether a value matches a regular expression.
Namespace Detail
alv.validators
Method Detail
<static> {Boolean} alv.validators.isAlphanumeric(pVal)
Check whether a value contains only alphanumeric characters.
Parameters:
{String} pVal
The value to be tested.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isDate(pVal, pDateFormat)
Check whether a value is a valid date.
Parameters:
{String} pVal
The value to be tested.
{String} pDateFormat
The date format of pVal.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isDigit(pVal)
Check whether a value contains only digit characters.
Parameters:
{String} pVal
The value to be tested.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isEmail(pVal)
Check whether a value is a valid e-mail address.
Parameters:
{String} pVal
The value to be tested.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isEmpty(pVal)
Check whether a value is empty.
Parameters:
{String|Number|RegExp} pVal
The value to be tested.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isEqual(pVal, pVal2)
Check for equality between two values.
Parameters:
{String} pVal
The first value.
{String} pVal2
The second value.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isNumber(pVal)
Check whether a value is a valid number.
Parameters:
{Number} pVal
The value to be tested.
Returns:
{Boolean}

<static> {Boolean} alv.validators.isUrl(pVal)
Check whether a value is a valid URL.
Parameters:
{String} pVal
The value to be tested.
Returns:
{Boolean}

<static> {Boolean} alv.validators.maxCheck(pChoices, pMax)
Check whether the amount of selected checkboxes is not higher than pMax.
Parameters:
{String} pChoices
The ID selector of the checkbox group that will be validated.
{Number} pMax
The maximum amount of selected checkboxes.
Returns:
{Boolean}

<static> {Boolean} alv.validators.maxDate(pVal, pMax, pDateFormat)
Check whether a date does not lie after pMax.
Parameters:
{String} pVal
The date to be tested.
{String} pMax
The maximum date.
{String} pDateFormat
The date format.
Returns:
{Boolean}

<static> {Boolean} alv.validators.maxLength(pVal, pMax)
Check whether the character length of a value is not higher than pMax.
Parameters:
{String} pVal
The value to be tested.
{Number} pMax
The maximum character length.
Returns:
{Boolean}

<static> {Boolean} alv.validators.maxNumber(pVal, pMax)
Check whether a numeric value is not higher than pMax.
Parameters:
{Number} pVal
The value to be tested.
{Number} pMax
The maximum number.
Returns:
{Boolean}

<static> {Boolean} alv.validators.minCheck(pChoices, pMin, pEmptyAllowed)
Check whether the amount of selected checkboxes is not lower than pMin.
Parameters:
{String} pChoices
The ID selector of the checkbox group that will be validated.
{Number} pMin
The minimum amount of selected checkboxes.
{Boolean} pEmptyAllowed
Indicate whether it is allowed to have no checkbox selected.
Returns:
{Boolean}

<static> {Boolean} alv.validators.minDate(pVal, pMin, pDateFormat)
Check whether a date does not lie before pMin.
Parameters:
{String} pVal
The date to be tested.
{String} pMin
The minimum date.
{String} pDateFormat
The date format.
Returns:
{Boolean}

<static> {Boolean} alv.validators.minLength(pVal, pMin)
Check whether the character length of a value is not lower than pMin.
Parameters:
{String} pVal
The value to be tested.
{Number} pMin
The minimum character length.
Returns:
{Boolean}

<static> {Boolean} alv.validators.minNumber(pVal, pMin)
Check whether a numeric value is not lower than pMin.
Parameters:
{Number} pVal
The value to be tested.
{Number} pMin
The minimum number.
Returns:
{Boolean}

<static> {Boolean} alv.validators.rangeCheck(pChoices, pMin, pMax)
Check whether the amount of selected checkboxes lies pMin and pMax.
Parameters:
{String} pChoices
The ID selector of the checkbox group that will be validated.
{Number} pMin
The minimum amount of selected checkboxes.
{Number} pMax
The maximum amount of selected checkboxes.
Returns:
{Boolean}

<static> {Boolean} alv.validators.rangeDate(pVal, pMin, pMax, pDateFormat)
Check whether a date lies between pMin and pMax.
Parameters:
{String} pVal
The date to be tested.
{String} pMin
The minimum date.
{String} pMax
The maximum date.
{String} pDateFormat
The date format.
Returns:
{Boolean}

<static> {Boolean} alv.validators.rangeLength(pVal, pMin, pMax)
Check whether the character length of a value lies between pMin and pMax.
Parameters:
{String} pVal
The value to be tested.
{Number} pMin
The minimum character length.
{Number} pMax
The maximum character length.
Returns:
{Boolean}

<static> {Boolean} alv.validators.rangeNumber(pVal, pMin, pMax)
Check whether a numeric value lies between pMin and pMax.
Parameters:
{Number} pVal
The value to be tested.
{Number} pMin
The minimum number.
{Number} pMax
The maximum number.
Returns:
{Boolean}

<static> {Boolean} alv.validators.regex(pVal, pRegex)
Check whether a value matches a regular expression.
Parameters:
{String|Number} pVal
The value to be tested.
{String|RegExp} pRegex
The regular expression.
Returns:
{Boolean}

Documentation generated by JsDoc Toolkit 2.3.2 on Thu Oct 17 2013 11:30:27 GMT+0200 (CEST)