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