Hi all,

Carbon UI Core has a client side html form validation framework build in to
it. IMHO with this framework, all the client side error handling can be
unified, and usability aspect of the forms can be improved. This framework
supports basic form validation such as "required field", "valid email"
etc.It can also use for customized validations. The Proxy Service template's
validation is implemented using this framework.

Ex:

<script>
     *jQuery(document).ready(function() {*
*        jQuery("#myForm").validate();*
*    });*
</script>
<form id="myForm" method="POST" action="foo.jsp">
     <input type="text" class="*required*" />
     <input type="submit" class="submit button" value="Save" />
</form>

More examples and API documentation:
http://docs.jquery.com/Plugins/Validation

Remember to replace $ with jQuery in these examples.

thanks,
Chanaka
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to