FYI, There's a prototype(a js library) based form validaton library
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype
It''s light (8k, plus prototype lib(54k)), and the usage is pretty
straight forward.
ex:
{{{<!-- a form "testform" with a field "testfield" -->
<form id="testform" action="#" method="get">
<!-- passing the validation requirements in the class attribute.-->
<input name="testfield" class="required validate-alphanum" title="Enter
your employee number, please use only alphanumeric characters" />
</form>
<!-- activate validation by passing the form or form's id attribute -->
<script type="text/javascript">
var valid3 = new Validation('testform');
</script>
}}}
class attribute "required validate-alphanum" tell client the field is
required and will be validate by alphanum.
To add on-form error notifiers is easy, just include a css to specify
the following style:
- input.required
- input.validation-failed
- input.validation-passed,
- validation-advice
It looks like a good client side validation choise,
Does anyone has tried this?
--
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---