Jel - JavaScript Enhancement Library API Documentation | Index
Marks the given field as a culprit field in the validation results. Registers the specified fields to be validated by the form validator. returns the word “an” or “a” for a given following word converts a string of dash-delimited words into a camelized version Checks if a given field is valid within the form associated with this validator. checks if a given field is currently classed as a culprit (via CSS) converts a string of words which are camel-cased, dash-delimited, underscore delimted, or a combination into a style approprite for constant values, that is, a string of underscore-delimited uppercase words Class constructor, which simply performs extension of the JavaScript built in objects String, Date, and Number. Class Constructor Class constructor. Class constructor The class constructor, where all work for this class is done converts a date string from one format to another. checks if a string value is equal to another, comparing both as dates checks if a string value when converted to a date is in the future. checks if a string value is greater than or equal to another, comparing both as dates checks if a string value is greater than another, comparing both as dates checks if a string value is less than or equal to another, comparing both as dates checks if a string value is less than another, comparing both as dates checks if a string value is not equal to another, comparing both as dates checks if a string value when converted to a date is in the past. checks if a string value falls within a given range, comparing as dates checks if a string value represents a date in a specified format. gets the day of the year for the given date an array of long day name string constants for the current language build. an array of short day name string constants for the current language build. gets the number of days for a given month and year. breaks a given string up into a string of lowercase delimited words, where an uppercase letter in a given string denotes a new word (camel case) Prevents the fields with the specified name from being regarded in form validation. Prevents the specified fields from being regarded in form validation. displays a given field as a validation culprit. Displays all of the current culprit fields for the latest validation. displays an inline element for a validation culprit. Extensions to Prototype’s Element class checks if a string value represents a valid email address Causes fields with the specified name to be regarded in form validation once again. Causes the specified fields to be regarded in form validation once again. checks if a given string ends with another string, with the option of a case-insensitive comparison checks if a given string is equal to another string, with the optional case-insensitive comparison checks if a string value is equal to another, assuming a specific type (and format if the type is a date) checks if a string value is equal to another, assuming a specific type (and format if the type is a date), and is case insensitive if type is string extracts the digits in a given string, returning the integer value of them joined together in sequence A hash of field labels (the text, not the label elements themselves) indexed by the ID of the related control. Attempts to finds a parent for a given element that matches a partial selector string. checks if a string value is equal to another, comparing both as floats checks if a string value is greater than or equal to another, comparing both as floats checks if a string value is greater than another, comparing both as floats checks if a string value is less than or equal to another, comparing both as floats checks if a string value is less than another, comparing both as floats checks if a string value represents a negative float checks if a string value is not equal to another, comparing both as floats checks if a string value represents a positive float checks if a string value falls within a given range, comparing as floats checks if a string value represents a positive or negative float The HTML form associated with this validator. Extensions to Prototype’s Form.Element class formats the given date as a string using the date format in format. formats a given number in a specified display format a hash collection of common formatting string constants to be used with Jel.Date.format and Jel.Date.parse The default method for formatting date format strings when displaying them in validation error messages or inline error messages. The default method for formatting a field label when displaying them in validation error messages or inline error messages. gets the full 4-digit year for this Date object |