You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by th...@webmd.net on 2002/04/03 03:50:58 UTC
I'm stuck on the html:submit
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: I'm stuck on the html:submit
Posted by James Mitchell <jm...@telocity.com>.
Could you post your entire jsp code to have a better look?
JM
> -----Original Message-----
> From: theron.kousek@webmd.net [mailto:theron.kousek@webmd.net]
> Sent: Tuesday, April 02, 2002 8:51 PM
> To: Struts Users Mailing List
> Subject: I'm stuck on the html:submit
>
>
>
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>