[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-22 Thread Jörn Zaefferer
Jacky schrieb: I see... the group's key is not related to the rules/method. So the group would force the underlying fields to only display one message? This would be a problem because a field would also have its own message (like date format is incorrect). I tried my old demo, inputting all

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-17 Thread Jacky
I see... the group's key is not related to the rules/method. So the group would force the underlying fields to only display one message? This would be a problem because a field would also have its own message (like date format is incorrect). I tried my old demo, inputting all four fields with wron

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-14 Thread Jörn Zaefferer
Jacky schrieb: I'm thinking if I can do this: rules:{ planFromDate: {dateRange:'plan'}, planToDate: {dateRange:'plan'} actualFromDate: {dateRange:'actual'}, actualToDate: {dateRange:'actual'} } groups: { dateRange: "planFromDate planToDate actualFromDate actualToDate" } $.validat

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-13 Thread Jacky
I'm thinking if I can do this: rules:{ planFromDate: {dateRange:'plan'}, planToDate: {dateRange:'plan'} actualFromDate: {dateRange:'actual'}, actualToDate: {dateRange:'actual'} } groups: { dateRange: "planFromDate planToDate actualFromDate actualToDate" } $.validator.addMethod('dateRa

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-13 Thread Jörn Zaefferer
Jacky See schrieb: I have put up a page to test. http://www.seezone.net/dev/dateValiation.html I need to use different method for different group of dates. In that case, a global dateRange method seems not possible? Thats a different issue. A better dateRange implementation could reuse the

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-12 Thread Aaron Heimlich
On Sat, Apr 12, 2008 at 2:34 PM, Jacky See <[EMAIL PROTECTED]> wrote: > I have put up a page to test. > http://www.seezone.net/dev/dateValiation.html Link should be: http://www.seezone.net/dev/dateValidation.html -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-12 Thread Jacky See
I have put up a page to test. http://www.seezone.net/dev/dateValiation.html I need to use different method for different group of dates. In that case, a global dateRange method seems not possible? On 4月11日, 上午6時03分, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Jacky See schrieb:> Hi, > > > Some q

[jQuery] Re: [Validation]How to make two field check output one message?

2008-04-10 Thread Jörn Zaefferer
Jacky See schrieb: Hi, Some question on the config of validation plugins. Suppose there are #fromDate and #toDate fields (using ui.datepicker). I have added these custom rules [...] It will output two messages of 'Please input correct date range'. How can I make it only ouput single one? I'