Wednesday, July 16, 2008

Steven Pothoven for President

4 comments:

  1. how do i code the jsp file and make changes according to your java script functionality......

    ReplyDelete
  2. send me how to use that formValidation.js file help me

    ReplyDelete
  3. tell me how to use the formValidation.js file in my jsp file

    ReplyDelete
  4. Just make sure the HTML that your JSP is returning contains the code:

    <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js
    "></script>
    <script src="javascript/formValidation.js"></script>
    <script>
    var vf = new FormValidation();
    vf.addValidationForField("date", "date", "date");
    </script>

    where the vf.addValidationForField function is repeated as necessary for each field in your form.

    ReplyDelete