hi marcos, in case you use the EventListener with the elements attribute (dom nodes) kind of [EMAIL PROTECTED](events={"onclick"},elements="domNode") you can see that the dom node has an event listener attached for "onclick".
using dojo it is possible to add a function to this dom node that gets executed before the "onclick" using a "before" advice. (plain old javascript is possible too, but not that elegant:)) please use the following link to see how. http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book12 .. should work for any other Tapestry component too. you just have to identify the dom node. g, kris "Marcos Chicote" <[EMAIL PROTECTED] nologies.com.ar> An "Tapestry users" 22.02.2007 15:19 <users@tapestry.apache.org> Kopie Bitte antworten Thema an User submit confirmation "Tapestry users" <[EMAIL PROTECTED] pache.org> Hi! I'm using Tapestry 4.1 and I can't get a async form submit to work as I would like. What I want is that when the user clicks on the submit button a javascript confirm window pops up and the user confirms his decision to submit the form or not. If he clicks the "Cancel" button I don't want any kind of submit to occur. Only if he confirms the submit should take place. Here is the html for my submit button. <span jwcid="boton" value="Boton Submit" id="submit1"/> <script type="text/javascript"> dojo.event.connect(dojo.byId("submit1"), "onclick", function(e) { if (!confirm('Are you sure?')) { e.cancel_handlers=true; return false; } return true; }); </script> But this doesn't work. Can anybody tell me how to do this? Or at least an idea of what I need to read to do this? Thanks Marcos --------------------------------------------------------------------- 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]