Usually you'll just want to check if Modern Web Design Using Java Script & DOMJava Script is back!
This is the best book on the subject I’ve ever read, showing you step-by-step the smartest ways to create usable, useful DHTML effects to enhance your site.
The goal of is to provide a cross framework and cross language way of validating data.
The validation constraints can be declared in JSON and shared between clients and the server. One thing that is a bit unorthodox is that most validators will consider undefined values (,) valid values.
When you submit a form to a CGI program that resides on the server, it is usually programmed to do its own check for errors.
If it finds any it sends the page back to the reader who then has to re-enter some data, before submitting again.
They are meant to give a feeling for how to use the library and should not be considered production ready code.
If the message is not a function and not a string it is simply returned as is.
Sometimes it's nice to be able validate field differently depending on the input itself.
It is unit tested with 100% code coverage and can be considered fit for production.
The project can be found on Git Hub where you can also find our issue tracker.