thanks very much!
$("#B").data("previousValue", null);
isn't effective, but
$("#B").data("previousValue", "");
is OK. It's very A-OK.
B: {
remote: function(){
return "/validateABExist.do?A="+$("#A").val()
+"&date="+new
Date().getTime()}
}
$("#A").change(function() {
$("#B").data("previousValue", "");
$("#B").valid();
});
In addition, for the method of "minLength/minlength" a question is
discovered:
rules: {
A {
rangeLength: [5, 15]
}
messages: {
A {
// chinese error message
// there is "rangeLength" but "rangelength"
rangeLength: jQuery.format("密码需要输入{0}-{1}位之间.")
}
}
If I use the "rangeLength" but "rangelength" define the custom
message,
but the defalut message is shown: "Please enter a value between 5 and
15 characters long."
I hava to use the "rangelength" define the custom messages:
rangelength: jQuery.format("密码需要输入{0}-{1}位之间.")
is OK, I think there are same question for the method of "minlength/
minLength, maxlength/maxLength".
On 6月24日, 下午10时04分, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> The remote method caches the last entered value, and sends a new
> request only when the content changed.
>
> You could clear the cache manually: $("#B").data("previousValue", null);
>
> Let me know if that works for you.
>
> Jörn
>
>
>
> On Tue, Jun 24, 2008 at 11:15 AM, zhudp.cn <[EMAIL PROTECTED]> wrote:
>
> > Thank you for your reply!
>
> > I have tried it, the first time of A happen changed, B's validate
> > method is called.
> > but the second time, B's validate method is called again.
> > the breakPoint of java's programe hasn't called.
>
> > cf: when the B happen changed, the A's value isn't changed.- 隐藏被引用文字 -
>
> - 显示引用的文字 -