Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Perfect Javascript Form Validation using Regular Expressions. (9lessons.blogspot.com)
4 points by sinu9i on March 5, 2009 | hide | past | favorite | 1 comment


Taking a perfectly ordinary form and breaking it in a completely unnecessary way so that it no longer works for users without JavaScript is quite rude. The same effect can be achieved just as easily with event handlers, and will result in more modular code with greater separation between the structural and behavioural layers.

If you really want to do form validation you'd be better off using something like Ojay's Forms package:

http://ojay.othermedia.org/articles/forms.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: