I know with the html:form you have the "onSubmit()" javascript handler in
which the following will work:

<script language="JavaScript">
     function unlinkConfirmation() {
          if (confirm("Remove employee link?"))
               return true;
          else
               return false;
     }
</script>

<html:form  onSubmit="return unlinkConfirmation()" ...  >

But when using the plain ol'   html:submit, I cannot seem to get a return
of "true" from the unlinkConfirmation() to cause the form to be submitted.

I have:
     <td ID="small"><html:submit property="unlinkEmployee" onmouseup
="return unlinkConfirmation()">Link</html:submit></td>

My form never gets submitted regardless as to whether or not I answer Yes
or No on the confirm message.

Can someone help tell me what I am doing wrong?

thanks,
Theron


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to