When I first wrote my confirm component this is the example I used.  This
issue is that with linksubmit, i am not able to stop the submit event.  When
I confirm for an important form, the user clicks cancel, the form still
submits.  My source is pretty much the exact same as the example.  I have
looked into it a bit but couldnt find a way to grab submit event to stop it.

Zack


Andy Pahne-6 wrote:
> 
> Tan cyb...@n schrieb:
>> hi,
>>
>> i'm a newbie in  tapestry.  may i know is it possible to do like:
>>
>> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
>> onclick="if(!confirm('Are you sure want to delete?')) return
>> false;"><button> images/deleteRecord24.png  /></button></t:actionlink>
>>
>> I have tried to put in <button> as well, but after choose cancel.  it
>> will
>> still submit.  May i know how to avoid the postback?
>> Thank you.
>>
>> Tan
>>
>>   
> 
> It is possible, have a look:
> 
> http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained
> 
> full source code included.
> 
> Andy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20973370.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to