This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
tom g (author)
Mon Jan 26 07:39:14 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG.rdoc | ||
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
good_form.js | ||
| |
test/ |
README.rdoc
GoodForm
github.com/cementhorses/good_form
A JavaScript version of Active Record’s validation suite.
Features
- Library-agnostic!
- Unit-tested!
- Ajax and client-side validations.
Example
Ready!
<script src="good_form.js" type="text/javascript"></script>
Set!
Validates.Presence("login", "email", "password", "password_confirmation");
Validates.Length("login", "email", { maximum: 32, allowBlank: true });
Validates.Format("email", { withOption: /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, allowBlank: true });
Validates.Confirmation("password", { allowBlank: true });
Go!
Validate.All();
Slow…
Validate("login");
See the inline documentation for way more info.
TODO
- Make sure everything is A-OK across the browser board (tested in WebKit).
- How about some granularity? Some callbacks?
Copyright © 2008-* Stephen Celis. Released by Cement Horses under the MIT License.








