seahorse.jquery-1.2.js

Summary
seahorse.jquery-1.2.js
About Seahorse jQuery pluginThe Seahorse jQuery plugin is a plugin to integrate the Seahorse library with the jQuery framework.
Functions
seaBehavior()Gives to a group of inputs a behavior.
seaForm()Gives to a group of forms a behavior.
seaValidate()Checks if all the selected elements, that have a Seahorse behavior, have valid values.
seaVerify()Call the function verify() of all the selected elements that have a Seahorse’s behavior.

About Seahorse jQuery plugin

The Seahorse jQuery plugin is a plugin to integrate the Seahorse library with the jQuery framework.

This plugin is licensed under the LGPL Version 3 license.

That means you can use Seahorse to develop commercial or open source projects, but, in both cases, you must publish, under a licence compatible with LGPL v3, any changes you make to the library.

Functions

seaBehavior()

jQuery.fn.seaBehavior = function(type,
validationOptions,
responseOptions)

Gives to a group of inputs a behavior.

The behavior type if defined by the ‘type’ parameter.  The valid values for ‘type’ are: text, alphabetical, alphanumeric, number, integer, date, time, ipAddress, http, ftp, and email.

Parameters

typeThe type of behavior to asign.
validationOptionsA JSON element with the validation options.
responseOptionsA JSON element with the response options.

seaForm()

jQuery.fn.seaForm = function(responseFunction,
errorMessage)

Gives to a group of forms a behavior.

Parameters

responseFunctionThe function called if one of more inputs of the form are invalid.
errorMessageThe message to be displayed if one of more inputs of the form are invalid.

seaValidate()

jQuery.fn.seaValidate = function()

Checks if all the selected elements, that have a Seahorse behavior, have valid values.

returns

true if all the elements has valid values and false in the oposite case.

seaVerify()

jQuery.fn.seaVerify = function()

Call the function verify() of all the selected elements that have a Seahorse’s behavior.

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.