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

2009-12-23 Thread Ashwanth Kumar
Use Event.observe for the form and use the validation with custom JS of urs... HTH - Ashwanth Kumar On Wed, Dec 23, 2009 at 3:48 PM, Kenneth CH, LEE wrote: > 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

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, > > >> >> Is there any existing facilitie

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

2009-12-22 Thread Ashwanth Kumar
On Tue, Dec 22, 2009 at 6:14 PM, Kenneth CH, LEE wrote: > Hi there, > Hello, > > 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"

[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) {