Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 About Seahorse
 About Seahorse jQuery plugin
 alphabetical
 alphanumeric
C
 compareDate
 compareTime
D
 date
E
 email
F
 filterString
 form
 ftp
 Functions
H
 http
I
 integer
 Introduction
 ipAddress
 isAlphabetical
 isAlphabeticalAscii
 isAlphanumeric
 isAlphanumericAscii
 isAsciiText
 isDate
 isDateFormat
 isDay
 isEmail
 isFtp
 isHttp
 isInteger
 isIPv4
 isIPv6
 isMonth
 isNumber
 isNumeric
 isTime
 isTimeFormat
L
 License
N
 number
 numeric
O
 Others
P
 parseDate
 parseInteger
 parseIPv4
 parseIPv6
 parseNumber
 parseTime
 Parsing functions
 passFilter
R
 removeBehavior
 Response options
S
 seaBehavior
 seaForm
 seahorse-1.2.js
 seahorse.jquery-1.2.js
 seaValidate
 seaVerify
 serialize
T
 text
 time
V
 validateForm
 Validation behaviors
 Validation functions
 Validation options
The Seahorse jQuery plugin is a plugin to integrate the Seahorse library with the jQuery framework.
alphabetical : function(element,
validationOptions,
responseOptions)
Gives to an element an alphabetical input behavior.
alphanumeric : function(element,
validationOptions,
responseOptions)
Gives to an element an alphanumeric input behavior.
compareDate : function(date1,
date2,
dateFormat)
Compare two strings that represents dates.
compareTime : function(time1,
time2,
timeFormat)
Compare two strings that represents times.
date : function(element,
validationOptions,
responseOptions)
Gives to an element a date input behavior.
email : function(element,
validationOptions,
responseOptions)
Gives to an element an e-mail address input behavior.
filterString : function(cad,
filter,
contains)
Returns all the characters of ‘cad’ that are contained, or that aren’t contained, in ‘filter’.
form : function(form,
responseFunction,
errorMessage)
Gives to an element a form behavior.
ftp : function(element,
validationOptions,
responseOptions)
Gives to an element a FTP address input behavior.
http : function(element,
validationOptions,
responseOptions)
Gives to an element a HTTP address input behavior.
integer : function(element,
validationOptions,
responseOptions)
Gives to an element an integer input behavior.
Seahorse is an open source JavaScript library created for simplify the use of forms, particularly the form validation.
ipAddress : function(element,
validationOptions,
responseOptions)
Gives to an element an IP address input behavior.
isAlphabetical : function(cad)
Checks if a string contains only alphabetical characters (including accents and another not Ascii characters).
isAlphabeticalAscii : function(cad)
Checks if a string contains only alphabetical ASCII characters.
isAlphanumeric : function(cad)
Checks if a string contains only alphanumeric characters.
isAlphanumericAscii : function(cad)
Checks if a string contains only alphanumeric ASCII characters.
isAsciiText : function(cad)
Checks if a string contains only ASCII characters.
isDate : function(cad,
format,
fill)
Checks if string represents a date.
isDateFormat : function(format)
Checks if string is a valid date format.
isDay : function(dia,
mes,
anio)
Checks if a string represents a day of a particular month.
isEmail : function(mail)
Checks if a string represents an e-mail address.
isFtp : function(ftp)
Checks if a string represents a FTP address.
isHttp : function(http)
Checks if a string represents a HTTP address.
isInteger : function(cad,
gs)
Checks if a string represents an integer.
isIPv4 : function(ip)
Checks if a string represents an IP version 4 address.
isIPv6 : function(ip)
Checks if a string represents an IP version 6 address.
isMonth : function(mes)
Checks if a string represents a month.
isNumber : function(cad,
ds,
gs)
Checks if a string represents a number.
isNumeric : function(cad)
Checks if a string contains only numbers.
isTime : function(cad,
format,
fill)
Checks if string represents an instant of time.
isTimeFormat : function(format)
Checks if string is a valid time format.
This library is licensed under the LGPL Version 3 license.
number : function(element,
validationOptions,
responseOptions)
Gives to an element a float input behavior.
numeric : function(element,
validationOptions,
responseOptions)
Gives to an element a numeric input behavior.
parseDate : function(cad,
format,
fill)
Receives a string representing a date and transforms it according to the format passed as parameter.
parseInteger : function(cad,
gs)
Parses a string and returns a integer.
parseIPv4 : function(ip)
Parses a string that represents an IPv4 address and returns a array with four numbers.
parseIPv6 : function(ip)
Parses a string that represents an IPv6 address and returns a array with eight hexadecimal numbers.
parseNumber : function(cad,
ds,
gs)
Parses a string and returns an number.
parseTime : function(cad,
format,
fill)
Receives a string representing an instant of time and transforms it according to the format passed as parameter.
passFilter : function(cad,
filter,
contains)
Acording to the value of ‘contains’, checks if all the characters of ‘cad’ are contained in ‘filter’ or if neither of the characters are contained.
removeBehavior : function(element)
Removes, from a element, any behavior asigned by a function of the Seahorse’s library.
The response options are parameters that determines the courses of actions when an user enter a valid or invalid input.
jQuery.fn.seaBehavior = function(type,
validationOptions,
responseOptions)
Gives to a group of inputs a behavior.
jQuery.fn.seaForm = function(responseFunction,
errorMessage)
Gives to a group of forms a behavior.
jQuery.fn.seaValidate = function()
Checks if all the selected elements, that have a Seahorse behavior, have valid values.
jQuery.fn.seaVerify = function()
Call the function verify() of all the selected elements that have a Seahorse’s behavior.
serialize : function(form,
notation)
Encode the elements of a form as a string.
text : function(element,
validationOptions,
responseOptions)
Gives to an element a text input behavior.
time : function(element,
validationOptions,
responseOptions)
Gives to an element a time input behavior.
validateForm : function(idForm)
Checks if all the elements of a form have valid values.
One of the main features of this library are the functions to assign validation behaviors to the inputs.
The validation options are parameters that restrict the values, or the format, that the data of an input can have to be considered valid.