23 Comments
- timsco, on 10/12/2007, -0/+10Yes, but you should always use it. Submitting a form just to get an error sucks.
- lstoll, on 10/12/2007, -2/+1237 diggs, no comments, and front page??
Anyways, remember, you should NEVER rely on js validation, although it can be handy... You should always validate server side too. Javascript is too easy to bypass. - proton, on 10/12/2007, -2/+7Seems like overkill to use Prototype just for validation.
- LucasOman, on 10/12/2007, -2/+6I hope no one uses this as their only validation. Web applications should ALWAYS have server-side input validation, even if this is also used simply for the convenience of the user.
- dasch, on 10/12/2007, -0/+3How about implementing XForms? It beats WebForms in every single way.
- clokwise, on 10/12/2007, -0/+3is it just me or is this web site blank??
- pwinn, on 10/12/2007, -0/+3http://72.14.207.104/search?q=cache:OvjSNWn7xpMJ:tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/
- Leech, on 10/12/2007, -0/+2mirror please?
- rYno, on 10/12/2007, -0/+2I'm seconding the Pear HTML_quickform (http://pear.php.net/html_quickform)
It would be nice however to have an unobtrusive ajax way to validate HTML_Quickform forms. Notice I said UNOBTRUSIVE! ;) - arizonagroove, on 10/12/2007, -0/+2I accidently dugg the parent down when I meant to digg it up. Sorry about that. Can't find a way to undo my negative digg :/
- pornel, on 10/12/2007, -1/+2How about implementing WHATWG WebForms2 rather than reinventing the wheel?
http://www.whatwg.org/specs/web-forms/current-work/ - RayS, on 10/12/2007, -1/+2Its bad security to totally rely on javascript (as others have pointed out here as well) for field validation. Also there is a good chunk of users who don't even turn on javascript in their browser which would render the validation useless.
I also agree this is kind of a waste of the prototype library as well, but if you were using it anyways I guess it wouldn't hurt to give nicer feedback to the user when they type something in wrong. - jsd8cc, on 10/12/2007, -0/+1If you're using PHP, just use PEAR's HTML_Quickform. The framework includes easy form creation and both client- and server-side validation.
http://pear.php.net/html_quickform - j0k3r, on 10/12/2007, -0/+1The page is back !
I like the author's comment : Arrrrg, I got dugg. :D - comradechimp, on 10/12/2007, -0/+0Maybe. It's not something that bothers me overly unless the form is so b0rked it 'loses' some of your input (yes flysaa.com, I'm talking to you).
That link seems to be down. - robsta, on 10/12/2007, -1/+1hmmm blank website. looks like my fellow aussies can't handle the digg effect!
- DAaaMan64, on 10/12/2007, -1/+1Seems good but the demo lets me put "4444" in the Name field and "aaaa" in the Employee Id. Still gonna use it though.
- moneysaver67, on 10/12/2007, -0/+0Wow, pretty impressive stuff. Of course, always, ALWAYS double-check server side, but for a clean, innovative approach this will definitely do the trick. Coupled w/ CSS, they've made this very nice.
Here's a direct link to the downloadable demo/files: http://tetlaw.id.au/upload/dev/validation/validation1.2.1.zip - noahhendrix, on 10/12/2007, -1/+1Prototype is not just all about AJAX, it is a JavaScript library.. It has many more functions built in to interact with the page. (unofficial) Documentation can be found here: http://blogs.ebusiness-apps.com/jordan/pages/Prototype%20Library%20Info.htm
- Dybber, on 10/12/2007, -1/+0Use the validation controls in ASP.NET and it writes the javascript :)
http://www.w3schools.com/aspnet/aspnet_refvalidationcontrols.asp - nberry, on 10/12/2007, -1/+0look at the link posted by pwinn
- Gridl0ck, on 10/12/2007, -2/+1"37 diggs, no comments, and front page??"
Ah, but kevinrose dugg it - common denominator in frontpage, low digg, low comment posts.
Make of that what you will. - lcarsdeveloper, on 10/12/2007, -3/+0Is someone secretly posting my browsing history on digg? 3 sites I have visited in the last few days have made it to the front page, while I was searching for AJAX code snippets. For the record I didn't like this tutorial. Major overkill.


What is Digg?
The Digg Toolbar for Firefox lets you Digg, submit content, and keep track of Digg even when you're not on the Digg site. Download the official