Form Validator

22 views
Skip to first unread message

Phil Petree

unread,
Mar 26, 2013, 12:33:52 PM3/26/13
to prototype-s...@googlegroups.com
Has anyone found a good form validator?
 
I have been using the one by Andrew Tetlaw for several years and its worked really well but now with proto 1.7 and ie 9 I'm finding it no longer works (as in it doesn't see <select> where no option has been chosen.
 
 
I've rooted around but all the validators I found were all written circa 2007 - 2008.

Jason Westbrook

unread,
Mar 26, 2013, 4:52:37 PM3/26/13
to prototype-s...@googlegroups.com

I usually home brew one that looks for the "required" class and then adds an "error" class to that element and then at the end of the function test if there are 0 elements with the "error" class

Jason Westbrook | T: 313-799-3770 | jwest...@gmail.com


--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scripta...@googlegroups.com.
To post to this group, send email to prototype-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Phil Petree

unread,
Mar 27, 2013, 8:14:08 AM3/27/13
to prototype-s...@googlegroups.com
Thanks Jason...
 
That's essentially what tetlaws does... he does have a number of special tests (currency, dates, alpha, digits etc.)  plus some callbacks so you can write your own.  I found the problem with the selects and fixed those... still some other issues.

Reply all
Reply to author
Forward
0 new messages