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><img src="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: [email protected] For additional commands, e-mail: [email protected]
