Anybody get jquery.validate.js working?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Anybody get jquery.validate.js working?

Timothy Murray
I ran into another "gotcha" with this approach.

In the custom event handler example from remember the milk

there is a submitHandler: handle that must be commented out or the seaside
callbacks  assigned to your submit button will not work.



$(document).ready(function() { 
    // validate signup form on keyup and submit 
    var validator = $("#signupform").validate({ 
.......
        submitHandler: function() { 
            alert("submitted!"); 
        }, 
 .....
 
}); 


Once I commented out that section of the example, the Seaside callbacks worked.


Prior to removing it, I had tried replacing the alert("submitted!") with return true; and return false; to no avail.




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anybody get jquery.validate.js working?

mozillanerd
Another gotcha is it you don't have javascript at the client.
I have suggest using javascript at the server (rhino is a good version) to run
the same validations at the server.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside