Re: t5.2.0-SNAPSHOT: Possible bug: form.onsubmit is being replaced by a tapestry onsubmit handler
Em Fri, 11 Dec 2009 01:22:29 -0200, buckofive escreveu: Hi All, Hi! Have you tried Event.observe('form', 'submit', function() { doCustomAjaxPost();return false; });? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
t5.2.0-SNAPSHOT: Possible bug: form.onsubmit is being replaced by a tapestry onsubmit handler
Hi All, It seems tapestry is adding its own onsubmit handler directly to a form element and overwriting mine. Is this on purpose or a bug? (I want to use my own direct handler so I can cancel the event before it gets fired to any listeners). I feel if tapestry is going to write any event handlers directly to an element then it should 1st check to see if the handler has already been defined and wrap it in a new function which calls the users function after executint any tapestry functions (or maybe there is a better way?). Thanks in advance, B Here whats I have defined: ... submit ... what tapestry renders is: ... submit ... -- View this message in context: http://old.nabble.com/t5.2.0-SNAPSHOT%3A-Possible-bug%3A-form.onsubmit-is-being-replaced-by-a-tapestry-onsubmit-handler-tp26738147p26738147.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