[mochikit] Re: Form Validation

2007-08-20 Thread Jason Bunting
Lee Connell asked: Are there form validation helpers in mochikit? No and yes - there are not any in the sense you are probably thinking, but by virtue of the fact that MochiKit makes JavaScript suck less, there are. Hope that makes sense. Look through the relatively complete documentation

[mochikit] Re: Stopping Multiple Submissions Of Form

2007-08-20 Thread machineghost
I didn't actually look at your code (sorry, I'm lazy), but the general way to solve this is to add something like: onSubmit=return myFunction(); to your form tag, and then define a function: function myFunction(){ doSomething(); doSomethingElse(); if( validateData() validateSomeMore()){