About the TMT Validator
The TMT validator is a JavaScript library for form validation. It was developed with several goals in mind:
- Attach validation rules to form fields using attributes in a declarative way
- Streamline authoring/editing on any IDE that can provide custom code hints for tags
- Make code generation painless. Defining the validation rules as attributes of the field tags makes it easier to generate forms server-side, or write code generators, because the form fields are self-contained
- Easy to use out of the box for XHTML people, even with minimal programming skills, while still being totally open to extensibility by developers familiar with JavaScript
- Ability to work on pages served using an XML mime-type, not only plain text tag soup
- Use well-formed XML code that can be parsed, generated or manipulated by any XML parser
- Easy integration with server-side languages that support custom tags (CFML, ASP.NET, JSP)
See it in action, take a look at the syntax reference or check the changelog
In order to use this library you need tmt_core.js, tmt_form.js and tmt_validator.js
As an alternative, you can download the whole set of TMT Libraries as a whole, including documentation