Thanks for the quick answer, but still, the deletion will be triggered.

I have the deletion inside a form listener. Could this be the problem?
That the form listener will still be activated.
Is possible to somehow prevent that?


Daniel Lydiard wrote:
Try event.returnValue:

<span jwcid="@ImageSubmit" onclick="event.returnValue=confirm('Really delete?')" style="border:0px" image="ognl:assets.imgRemove" selected="ognl:delCargo" tag="ognl:cargo"/>



----- Original Message ----- From: "Taavi Sildeberg" <[EMAIL PROTECTED]>
To: "Tapersty List" <[email protected]>
Sent: Sunday, January 29, 2006 10:33 PM
Subject: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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

Reply via email to