Nope, that isn't supported, yet. Though you could set up a global
beforeSend event handler that replaces the offending id with something
else.
http://docs.jquery.com/Ajax/ajaxSend#callback
$().ajaxSend(function (event, XMLHttpRequest, ajaxOptions) {
ajaxOptions.data = ajaxOptions.data.replace("
My input id is Name and the remote method is Check so the request is
Check?Name=Something
Can I change the Name to, for example, TagName in the request, without
needing to change the id of the input?
Thanks,
Miguel
On Aug 22, 9:16 am, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Yes, thats pos
Yes, thats possible. Something like this works:
$.validator.addMethod("custom", function(value, element) {
if (invalid(value) {
this.settings.messages[element.name] = "my custom message";
return false;
}
return true;
}, "default message");
T
Hi Jörn,
It worked fine ... just a suggestion:
What about the custom method to return the error message?
This way a value could be checked in many ways and displaying a more
accurate message for each error.
Is this possible?
Thanks,
Miguel
On Aug 21, 9:39 pm, "Jörn Zaefferer" <[EMAIL PROTECT
Custom remote methods are currently not supported. You'd need to
replicate the current implementation and change the necessary details
- not recommended.
There are various options for customizing message display, but using
animations isn't supported either. You could give the
highlight/unhighlight
Hello,
I have one more question about this,
I want to know if could override the default remote function creating
another function that calls a $.ajax with method POST and has effects
fadeIn() and fadeOut() when validating a INPUT.
For example:
remote: function(va
Yes, see http://docs.jquery.com/Plugins/Validation/Methods/remote#url
Jörn
On Thu, Aug 21, 2008 at 6:48 PM, shapper <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Can I validate a input using a remote function on my server side code?
>
> I could return a JSon from my server side code with "True" or
>
Brian J. Cardiff schrieb:
I'm including some complex validation through remote mechanism. My
problem is that this validation took a while, so I would like to
disable the validation on keypress after the user try to submit a form
with an invalid value in that field.
Is that possible? If so, how?
8 matches
Mail list logo