We are currently experimenting with plugging in validanguage v1.02 http://www.drlongghost.com/validanguage.php with the Jharks workflow survey engine. Described here are the steps to plug in validanguage into your web application to support client side validation.
1 Include JQuery library into your application. http://jquery.com/ Note: currently working with Jquery version with 1.4.3
<script type="text/javascript" src="_path_to_jquery_libraryscript_on_your_web_server_/jquery-1.4.3/jquery.js"> </script>
2 Include the jharks web resource files into your project. The jharksWorkflowsurvey tag will appropriately built out the references and scripts needed to support validation of the survey pages using validanguage.js.
It will automatically include the reference for
<script type="text/javascript" src="_path_to_validanguage_libraryscript_on_your_web_server_/validanguage_uncompressed.js"> </script>
3 Insure each form element you want to include in validation has an id attribute defined.
4 Create your validanguage based validation script for the form and include it in the page.
<script type="text/javascript" > validanguage.el.some_number = { characters: { mode: 'allow', expression: 'numeric' }, onsubmit: true, required: false, errorMsg: 'Must be a number', onblur: true, expression: 'numeric', minlength: 5, maxlength: 5 }; </script>
Test out your validation.
Anonymous