Hey Tony,
Yes, it's my script. I never got round to adding a forum on my site, and eventually we're going to move it to our company site so it'll finally get a forum there!
w.r.t. your problem, try this:
1. Instead of adding the onsubmit="return rsv.validate(this, rules)" attribute to the form tag (which only gets called when a submit button is pressed), add this attribute to your button:
<input type="button" value="Submit" onclick="validatePage(this.form, rules)" />
Then, add the following JS to your page <head> - maybe in the same spot as where you define the rules:
Note: "myform" needs to be the ID of your form. So your form tag would need an id="myform" attribute.
And that's it! Let me know how it goes!
Yes, it's my script. I never got round to adding a forum on my site, and eventually we're going to move it to our company site so it'll finally get a forum there!
w.r.t. your problem, try this:
1. Instead of adding the onsubmit="return rsv.validate(this, rules)" attribute to the form tag (which only gets called when a submit button is pressed), add this attribute to your button:
<input type="button" value="Submit" onclick="validatePage(this.form, rules)" />
Then, add the following JS to your page <head> - maybe in the same spot as where you define the rules:
Code:
<script type="text/javascript">
function validatePage(form, rules)
{
if (rsv.validate(form, rules))
{
document.getElementById("myform").submit();
}
}
</script>
Note: "myform" needs to be the ID of your form. So your form tag would need an id="myform" attribute.
And that's it! Let me know how it goes!