Method Summary
<static> String alpha(<Event> evt)

Called if this form element can contain only letters.

<static> String alphanumeric(<Event> evt)

Called if this form element can contain only letters and numbers.

<static> void autotrim(<Event> evt)

If we want the form element to auto trim the white space, we can set this attribute.

<static> Boolean checkForm(<Object> frm)
<static> <private>  String displayError(<Event> elem, <String> errType, <String> msg)

Error Information
This method only needs to be called from the other included functions, however it is important enough to note here as it yeilds information on how the error messages and classes are handled.

Displays the error based upon the status of the error checking.

<static> String email(<Event> evt)

This element must be a standard valid e-mail address.

<static> <private>  String fixNaming(<String> inString)

Convert the humpBack notation into English readable for determining form element names.

<static> DOMObject getTarget(<Event> evt)

Determine the target.

<static> void initializeValidation()

Call this function after a the form(s) have been loaded and the appropriate tests will be attached to the onblur method of the form element.

<static> String internationaldate(<Event> evt)

Called if this form element is an international formated date value (year-month-day).

<static> String matches(<Event> evt)

The value of this form element must match another form element's, value.

<static> String maxlen(<Event> evt)

This element cannot have more than the number of charcters that the attribute value specifies.

<static> String maxval(<Event> evt)

Called if this form element cannot be above the value specified within the value of the attribute.

<static> String maxwords(<Event> evt)

Called if this form element cannot have more than a certain number of words.

<static> Boolean meetsRegEx(<String> string, <String> regEx)

Determine if there was a match with the regular expression and the string.

<static> String minlen(e)

This element must be at least n characters long as specified by the attribute value.

<static> String minval(<Event> evt)

The value of this form element cannot be below the value specified within the value of the attribute.

<static> <private>  Boolean myAttachEvent(<DOMObject> obj,<Event> evt,<Function> func)

Attached a function to an event for a given object.

<static> String notfirst(<Event> evt)

Called if this form element, a drop down element or a list box, is not the first element as the selected element.

<static> String numeric(<Event> evt)

Called if this form element can contain only numbers.

<static> String numgt(<Event> evt)

The number in the given field must be larger than the field associated as the value in the attribute numgt.

Note: This will not make the entry requried.

<static> String numgte(<Event> evt)

The number in the given field must be larger than or equal to the field associated as the value in the attribute numgt.

Note: This will not make the entry requried.

<static> String regex(<Event> evt)

Called if this form element must match a regular expression.

<static> <private>  void removeErrorNode(<DOMObject> elem, <String> errType)

If the error has been resolved, it will remove the error node and reset any styles.

<static> String required(<Event> evt)

This element cannot be left blank.

<static> String ssn(<Event> evt)

This attribute is used to check to see that the form element is using a SSN format.

<static> String time(<Event> evt)

Called if this form element is a time value of hours and minutes.

This attribute will allows for:
9:45
9:45 am
9:45 AM

This formating does not allow for 24 hour time telling, sometimes called "Military Format".

<static> String trim(<String> inString)

Trims unnecessary white space around the text within the element.

<static> String uscurrency(<Event> evt)

Called if this form element is supposed to be in the form of US currency (US dollars).

<static> String usdate(<Event> evt)

Called if this form element is a US formated date value (month-day-year).

<static> String usphone(<Event> evt)

Called if this form element is supposed to be a standard 10 digit US phone number (area code plus phone number).

<static> String zipcode(<Event> evt)

Called if this form element is supposed to be 5 digit or 9 digit zip code.

This attribute will allow standard zip codes to be used such as:
32712
32712-1234

Note: This attribute does not check to see if the zip code is a legitimate value, only that it is a legitimate format.

Method Detail

alpha

<static> String alpha(<Event> evt)

alphanumeric

<static> String alphanumeric(<Event> evt)

autotrim

<static> void autotrim(<Event> evt)

checkForm

<static> Boolean checkForm(<Object> frm)

displayError

<static>  <private> String displayError(<Event> elem, <String> errType, <String> msg)

email

<static> String email(<Event> evt)

fixNaming

<static>  <private> String fixNaming(<String> inString)

getTarget

<static> DOMObject getTarget(<Event> evt)

initializeValidation

<static> void initializeValidation()

internationaldate

<static> String internationaldate(<Event> evt)

matches

<static> String matches(<Event> evt)

maxlen

<static> String maxlen(<Event> evt)

maxval

<static> String maxval(<Event> evt)

maxwords

<static> String maxwords(<Event> evt)

meetsRegEx

<static> Boolean meetsRegEx(<String> string, <String> regEx)

minlen

<static> String minlen(e)

minval

<static> String minval(<Event> evt)

myAttachEvent

<static>  <private> Boolean myAttachEvent(<DOMObject> obj,<Event> evt,<Function> func)

notfirst

<static> String notfirst(<Event> evt)

numeric

<static> String numeric(<Event> evt)

numgt

<static> String numgt(<Event> evt)

numgte

<static> String numgte(<Event> evt)

regex

<static> String regex(<Event> evt)

removeErrorNode

<static>  <private> void removeErrorNode(<DOMObject> elem, <String> errType)

required

<static> String required(<Event> evt)

ssn

<static> String ssn(<Event> evt)

time

<static> String time(<Event> evt)

trim

<static> String trim(<String> inString)

uscurrency

<static> String uscurrency(<Event> evt)

usdate

<static> String usdate(<Event> evt)

usphone

<static> String usphone(<Event> evt)

zipcode

<static> String zipcode(<Event> evt)