Wednesday, July 16, 2008

Steven Pothoven for President

4 comments:

FranksCody said...

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

FranksCody said...

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

FranksCody said...

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

Steven Pothoven said...

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.