Search the web
Sign In
New User? Sign Up
validation · Techniques for HTML form validation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
helper functions   Message List  
Reply | Forward Message #411 of 427 |
Re: helper functions

One off my head is:
Element.equalTo(anotherElement) - compares to see if value in
current element is equal to value in second element. This I had to
implement on my own for password confirmation.

--- In validation@yahoogroups.com, "somematt" <matthew.a.frank@...>
wrote:
>
> i'm soliciting feedback on helper functions to make setting up page
> validation much easier. i have already considered
>
> * Validation.require: makes one or more fields required
> * Validation.requireAtLeastOne: requires at least one of the
given
> elements be entered (boolean OR validation)
> * Validation.requireAll: requires all fields as one unit,
though
> this unit itself is not required (boolean AND validation, but
better
> than what's already provided)
> * Validation.requireGroup: simplified version of
requireAtLeastOne
> specific to checkbox and radio button groups with the same field
name
> * Validation.currency
> * Validation.dateTime
> * yadda yadda, fulfilling all the basic validations.
>
> the important stuff to nail down is for the more complicated
> validations. let me know what you like and don't like.
>
> another tweak i've been considering is using something more like
jMock
> syntax, but i'm wondering if that would be any easier to use than
> well-named methods.
>
> if you want to add comments to the issue in the project tracking
area,
> feel free
>
> http://code.google.com/p/javascript-form-validation/issues/detail?
id=8&can=2&q=
>










Mon Aug 28, 2006 7:37 pm

maddogv6
Offline Offline
Send Email Send Email

Forward
Message #411 of 427 |
Expand Messages Author Sort by Date

i'm soliciting feedback on helper functions to make setting up page validation much easier. i have already considered * Validation.require: makes one or more...
somematt
Offline Send Email
Aug 26, 2006
8:49 pm

One off my head is: Element.equalTo(anotherElement) - compares to see if value in current element is equal to value in second element. This I had to implement...
maddogv6
Offline Send Email
Aug 29, 2006
4:51 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help