04 Aug
Posted by ProCOM
on August 4, 2007 – 11:15 am - 294 views
If you're new here, you may want to subscribe to my RSS feed. So that you can read the latest updates about Web2.0 tools, Making Money Online, Tips in SEO, Ajax and many more. Thanks for visiting ProgramimiCOM!
This tutorial talks about easy field validation with Prototype.
I wanted a robust javascript validation library that was simple to implement and didn’t require me do any extra work other than creating the form. My favourite idea for a method of doing this is to utilise the field elements’ class attribute to indicate what sort of field it is and hence any validation requirements.
There are a few javascript libraries that implement that idea like wForms, but, since I’m currently hell-bent on re-writing all my javascript using Prototype, I thought I’d see how difficult or easy it would be to roll my own. Turns out that this is just the sort of thing that is easy with Prototype.
Demo of field validation using prototype
Print This Post
Email This Post
Comments RSS
TrackBack Identifier URI
You must be logged in to post a comment.