[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-22 Thread Dane
Sorry about that. Should be good now. ^Fingers Crossed^ On May 22, 7:53 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Can't apply the patch, see comment on ticket. > > Jörn > > On Wed, May 21, 2008 at 1:09 AM, Dane <[EMAIL PROTECTED]> wrote: > > > Ticket #2908 created and patch attached. Let

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-22 Thread Jörn Zaefferer
Can't apply the patch, see comment on ticket. Jörn On Wed, May 21, 2008 at 1:09 AM, Dane <[EMAIL PROTECTED]> wrote: > > Ticket #2908 created and patch attached. Let me know if I should > change anything. > > On May 19, 1:57 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> > wrote: >> Just use "messages"

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-20 Thread Dane
Ticket #2908 created and patch attached. Let me know if I should change anything. On May 19, 1:57 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Just use "messages" for embedding messages as metadata. The odds of > adding a method "messages" are extremely low, and once its released, > I'll upd

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-19 Thread Jörn Zaefferer
Just use "messages" for embedding messages as metadata. The odds of adding a method "messages" are extremely low, and once its released, I'll update the docs accordingly. Jörn On Fri, May 16, 2008 at 7:05 PM, Dane <[EMAIL PROTECTED]> wrote: > > -> "Avoiding the conflict between a method "message

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-16 Thread Dane
-> "Avoiding the conflict between a method "messages" and those actual messages should be easy enough. " Should we plan on supporting a simulatanious "message" method and custom messages in metadata? As stated, I'm still climbing the learning curve :). Before I implement this I just want to make

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-16 Thread Dane
Ah, agreed. I'll make these changes and send in a ticket. On May 15, 4:20 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > How about this? > > meta: default > class="{required:true,minlength:2,messages:{required:'Enter > this!',minlength:'Way to short'}}" > > meta: "validation" > class="{validat

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-15 Thread Jörn Zaefferer
How about this? meta: default class="{required:true,minlength:2,messages:{required:'Enter this!',minlength:'Way to short'}}" meta: "validation" class="{validation:{required:true,minlength:2,messages:{required:'Enter this!',minlength:'Way to short'}}}" No need to change the meta-option that way.

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-15 Thread Dane
Ok I have a first cut done. elements can now have metadata like: Quick question though. Which do you prefer? 1)$("#Form").validate({meta:"rules", metaMessages:"messages"}); 2)$("#Form").validate({meta:{rules:"rules", messages:"messages"}}); I like 2, but it changes the existing API. How do yo

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-14 Thread Dane
Thanks for the help on getting started. I'd already started wading through the source so you definitely saved me some time. I'm not totally comfortable with Jquery yet but I'm getting there :). I'll give this a go and see what happens. Should I just reply to this thread to contribute/ask questions

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-14 Thread Jörn Zaefferer
It isn'T supported, yet. You could help getting it into the plugin by trying to implement it yourself, and contributing it back. To get started, take a look at the defaultMessage-method. Currently it looks for custom messages specified via options, then for the title attribute, then for default m