Date:  10/14/2002 10:18:22 AM Msg ID:  000924
From:  John Waite Thread:  000913
Subject:  Re: onSubmit not working as expected
If closing the </FORM> doesn't do the trick, you could try removing the onSubmit="return validate()" from the <FORM ...> line and adding onClick="return validate();" to the <INPUT type="submit" ...> line.
 
John
 
Sent by Gary Wood on 10/08/2002 08:41:30 PM:
The following is included in the main.FWX file:
 
In the HEAD section:
 
<script language="JavaScript">
<!--
function validate() {
    alert("Inside the validate function now") 
    return false
}
// -->
</script>
<form name="thisF" method="POST" action="main.fwx" onSubmit="return validate()">
<input type="submit" name="savetimesheet" value="  Save Timesheet  ">
When the Save Timesheet button is pressed the validate() function is not called.
 
thx..........gary