[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-21 Thread lightglitch
Done. http://dev.jquery.com/ticket/3503 On Oct 21, 9:53 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Could you file a ticket for this?http://dev.jquery.com/newticket > (requires registration) > > Thanks! > > Jörn > > On Mon, Oct 20, 2008 at 8:49 PM, lightglitch <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-21 Thread Jörn Zaefferer
Could you file a ticket for this? http://dev.jquery.com/newticket (requires registration) Thanks! Jörn On Mon, Oct 20, 2008 at 8:49 PM, lightglitch <[EMAIL PROTECTED]> wrote: > > I have made a patch for my app to the rules function to support custom > messages: > > This is the new function, woul

[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-20 Thread lightglitch
I have made a patch for my app to the rules function to support custom messages: This is the new function, would be nice to have something similar to this. rules: function(command, argument) { var element = this[0]; if (command) {

[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-09 Thread Jörn Zaefferer
You can use metadata, too. Currently barely documented, and not really recommended either, but works since 1.4. Jörn On Thu, Oct 9, 2008 at 5:20 PM, Bob Silverberg <[EMAIL PROTECTED]> wrote: > > Thanks for the quick response. That fixed my problem. > > One more question: > > I'd like to add cu

[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-09 Thread Bob Silverberg
Thanks for the quick response. That fixed my problem. One more question: I'd like to add custom error messages to some of my dynamic validations. Is it correct that the only way to add a custom error message to a particular rule is either by: 1. using the form.validate() method 2. using $.val

[jQuery] Re: [validate] Trouble using rules( "add", rules ) as well as setting attribute for range validations

2008-10-09 Thread Jörn Zaefferer
For rules("add") to work, the element's form has to be validated, that is, call $("form").validate() first. I've updated the documentation accordingly. Not sure why the attr-approach failed, I'll take a look at that. Jörn On Thu, Oct 9, 2008 at 2:37 AM, BobS <[EMAIL PROTECTED]> wrote: > > I'm wo