You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Taavi Sildeberg <ta...@zero.ee> on 2006/01/27 10:27:23 UTC
[TAP3] @ImageSubmit and javascript onClick problem
Hey everybody,
I have a problem with @ImageSubmit and javascript onClick function. In
my html template is next line:
<span jwcid="@ImageSubmit" onclick="javascript:return confirm('Really
delete?')" style="border:0px" image="ognl:assets.imgRemove"
selected="ognl:delCargo" tag="ognl:cargo"/>
It raises a javascript confirmation box and user confirms deletion.
For some reason it won't matter if a press yes or cancel result is the
same. ImageSubmit still triggers submit and deletes item. Why I don't
know :(
Can anyone help me with this annoying problem?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org