Re: Help with onActivate Page

2009-12-26 Thread Kenneth CH, LEE
Hi, You can have multiple event handler for the same event: http://tapestry.apache.org/tapestry5/guide/event.html The one with the same no. of arguments as the no. of context parameters will get called, as well as the no-arg one. I figured that out with my own experiment. Hope that helps. Ke

Re: [newbie] Intercepting client-side form validation/submission

2009-12-23 Thread Kenneth CH, LEE
There is a submit button within the form. I could not attach the code in onclick handler because I want it to run only if the form is valid. 2009/12/22 Ashwanth Kumar : > On Tue, Dec 22, 2009 at 6:14 PM, Kenneth CH, LEE wrote: > >> Hi there, >> > > Hello, > &g

[newbie] Intercepting client-side form validation/submission

2009-12-22 Thread Kenneth CH, LEE
Hi there, Is there any existing facilities to trigger some custom Javascript code _after_ validating the form? I'm now doing it with some Javascript tricks: === ... Event.observe(window, "load", function() { var f = $("myform").onsubmit; $("myform").onsubmit = function(e) {