[jQuery] Re: Validate / Remote

2009-11-28 Thread RCLumbriga
Thnk a lot.. Work... Thkns On 26 nov, 14:02, Jörn Zaefferer wrote: > That script will get a single GET paremter with the name of the field as the > key and the value of the field as the value, here you'd get > verifica_user.php?cusuario=username > > Jörn > > On Thu, Nov 26, 2009 at 1:30 PM,

[jQuery] Re: [validate] remote vs depends

2009-04-17 Thread snobo
Thanx a ton for the ultra-quick reply & help! Worked like a charm, I did it like this: rules.UserName = { xRemote: { condition: function(element) { element.value = $.trim (element.value); return element.defaultValue != element.value; },

[jQuery] Re: [validate] remote vs depends

2009-04-17 Thread Jörn Zaefferer
Ok, that makes it a bit more difficult. For a workaround, try something like this: $.validator.addMethod("customRemote", function(value, element) { if (!remoteRequired(element) { return "dependency-mismatch"; } return $.validator.methods.remote.apply(this, arguments); }, $.validator.mes

[jQuery] Re: [validate] remote vs depends

2009-04-17 Thread snobo
well, I don't see how required can help me... what I want is to make a remote call/check ONLY under certain circumstances. Plus, this field is "constantly"-required already anyway... actually, now I think there might be various workarounds, e.g. creating a custom method, which would check the con

[jQuery] Re: [validate] remote vs depends

2009-04-17 Thread Jörn Zaefferer
This is indeed a bug, in this case something never tested for. Is using required: function() {} together with remote an option? Jörn On Fri, Apr 17, 2009 at 3:03 PM, snobo wrote: > > I've been trying to use remote method coupled with depends, like this: > > remote: { >        depends: function

[jQuery] Re: Validate, Remote and Custom Rules -- disable and enable a submit button.

2009-03-15 Thread Louie Miranda
help :( -- Louie Miranda (lmira...@gmail.com) http://www.louiemiranda.net Quality Web Hosting - www.axishift.com Pinoy Web Hosting, Web Hosting Philippines On Mon, Mar 16, 2009 at 9:57 AM, Louie Miranda wrote: > I tried to make a remote validation with custom rules (return true or > false) on

[jQuery] Re: [validate] "remote" not work in Internet Explorer

2009-03-13 Thread Ag
Sorry. I have not explained in detail. In Opera and FireFox everything works fine. I think that something is wrong with my server. On 13 мар, 17:18, Jörn Zaefferer wrote: > You're probably loading it from the local filesystem. You need PHP for > the remote script, seehttp://jquery.bassistance.de

[jQuery] Re: [validate] "remote" not work in Internet Explorer

2009-03-13 Thread Jörn Zaefferer
You're probably loading it from the local filesystem. You need PHP for the remote script, see http://jquery.bassistance.de/validate/demo/milk Jörn On Fri, Mar 13, 2009 at 1:26 PM, Ag wrote: > > "remote" not work in Internet Explorer. See jquery-validate/demo/milk/ >

[jQuery] Re: [validate] remote option needs "name" attribute, can't validate XHTML

2009-03-05 Thread zemm
Now, ain't that weird - the w3c validator was giving me the hell for the name attrib, now it doesn't. Maybe it was because the name was weird. I even googled "xhtml name attribute" and found this w3c page: http://www.w3schools.com/Xhtml/xhtml_syntax.asp "The id Attribute Replaces The name Attribut

[jQuery] Re: [validate] remote option needs "name" attribute, can't validate XHTML

2009-03-05 Thread Jörn Zaefferer
How is the name attribute invalid? http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_extformsmodule Jörn On Thu, Mar 5, 2009 at 10:06 AM, zemm wrote: > > Hi, > using jquery validate plugin seems that I can't avoid to use the > "name" attribute in the text field for the captcha. >

[jQuery] Re: validate remote question

2008-12-31 Thread Jörn Zaefferer
No, the remote method currently doesn't support any server messages. It's not likely to be added any time soon either. Jörn On Wed, Dec 31, 2008 at 10:43 AM, SeanthePaddy wrote: > > hi there, > > im using the validate plugin to validate a form and in specific a dath > of birth field. > i think i

[jQuery] Re: [validate] Remote Call Failing

2008-12-15 Thread James Hughes
Ah. I thought i was. That explains it! Thanks for the response James. From: jquery-en@googlegroups.com on behalf of Jörn Zaefferer Sent: Mon 15/12/2008 12:44 To: jquery-en@googlegroups.com Subject: [jQuery] Re: [validate] Remote Call Failing

[jQuery] Re: [validate] Remote Call Failing

2008-12-15 Thread Jörn Zaefferer
Updating to 1.5 should fix the issue. Jörn On Mon, Dec 15, 2008 at 11:14 AM, James Hughes wrote: > > Hello, > > I am trying to set up a remote validation field using the Validate plugin but > for some reason it's not working. Here is my code, > > $("#myform").validate({ > rules: { >name:

[jQuery] Re: [validate] remote checking and apache rewrite problem

2008-11-28 Thread jurkoferko
No, there is no redirect involved, and i managed to identify the problem: The second script, which used Apache rewrite was displaying also some html content, not only 'true' or 'false' ... I didn't notice it first, because the only thing my php script was displaying was 'true' or 'false', but whe

[jQuery] Re: [validate] remote checking and apache rewrite problem

2008-11-27 Thread Jörn Zaefferer
Is there a redirect involved? If so, my guess is that the XMLHttpRequest doesn't follow the redirect, just gets the 30x code and no response body. I don't think the plugins can do anything about that... Jörn On Thu, Nov 27, 2008 at 12:02 PM, jurkoferko <[EMAIL PROTECTED]> wrote: > > Hi i have a

[jQuery] Re: [validate] remote rule send field value by POST instead GET

2008-10-24 Thread Àlex Corretgé
Ok, I now use a similar tech ( zajaj ) I made the question to integrate all the validations in a Only One routine. thanks 2008/10/23 Jörn Zaefferer <[EMAIL PROTECTED]> > Currently there is no good option to customize the request. The > easiest way may be using $.ajaxSetup, though that affects al

[jQuery] Re: [validate] remote rule send field value by POST instead GET

2008-10-23 Thread Jörn Zaefferer
Currently there is no good option to customize the request. The easiest way may be using $.ajaxSetup, though that affects all requests. $.ajaxSetup({ type: "post" }); Jörn On Thu, Oct 23, 2008 at 11:04 PM, Àlex Corretgé <[EMAIL PROTECTED]> wrote: > Hi, > > I have a hidden field in a form that

[jQuery] Re: Validate remote: passing multiple variables?

2008-09-10 Thread Jörn Zaefferer
That doesn't help much in this case, as currently there is no way to pass that data to the remote method and from there to the serverside. A possible workaround maybe the ajaxSend event: http://docs.jquery.com/Ajax/ajaxSend#callback You can use that to add additional data to be sent to the server.

[jQuery] Re: Validate remote: passing multiple variables?

2008-09-10 Thread ryanstreet
Thank you very much for the assistance. I will give it a shot. On Sep 9, 5:41 pm, Xinhao Zheng <[EMAIL PROTECTED]> wrote: > hiryanstreet, > >     You can use $.('xxx').serialize() to collect all the input element > into an array,or else you may try json,like > > json = '{ >     "a": "{\"p\":\"cc

[jQuery] Re: Validate remote: passing multiple variables?

2008-09-09 Thread Xinhao Zheng
hi ryanstreet, You can use $.('xxx').serialize() to collect all the input element into an array,or else you may try json,like json = '{ "a": "{\"p\":\"cc\",\"m\":\"aa\",\"s\":\"bb\"}", "b": 2, "c": 3, "d": 4, "e": 5 }'; $.post(url, {data:json}, fu

[jQuery] Re: Validate remote method don't work

2008-08-27 Thread adrianrz
Hi Jörn, Very very thanks for your advice. The problem was in the name of GET parameter on the remote script $request = trim(strtolower($_REQUEST[codigo])); $_REQUEST[codigo] instead $_REQUEST[value] This problem was because in the Milk example (server side script) is bad explained. Best

[jQuery] Re: Validate remote method don't work

2008-08-27 Thread Jörn Zaefferer
Can you check if a request is made and what the response is via Firebug? In any case, a testpage would help a lot. Jörn On Wed, Aug 27, 2008 at 9:56 PM, adrianrz <[EMAIL PROTECTED]> wrote: > > Hi, > > I've try to use remote method and not work. > > > There are the parameters > > > > $(document

[jQuery] Re: [validate] Remote Validation

2008-08-22 Thread Jörn Zaefferer
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("

[jQuery] Re: [validate] Remote Validation

2008-08-22 Thread shapper
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

[jQuery] Re: [validate] Remote Validation

2008-08-22 Thread Jörn Zaefferer
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

[jQuery] Re: [validate] Remote Validation

2008-08-21 Thread shapper
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

[jQuery] Re: [validate] Remote Validation

2008-08-21 Thread Jörn Zaefferer
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

[jQuery] Re: [validate] Remote Validation

2008-08-21 Thread linocarvalho
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

[jQuery] Re: [validate] Remote Validation

2008-08-21 Thread Jörn Zaefferer
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 >

[jQuery] Re: [validate] remote validation only on submit

2008-03-27 Thread Jörn Zaefferer
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?

[jQuery] Re: Validate remote method response problem

2008-01-29 Thread Rus Miller
Whew! OK. Got the URL checker working but to tell the truth I don't know what the issue was. I thought it was the onkeyup:false that fixed it but I just checked and it worked anyway, although I like the idea of the validation happening on blur so I left it as false. If anyone's interested...

[jQuery] Re: Validate remote method response problem

2008-01-29 Thread Jörn Zaefferer
Rus Miller schrieb: OK, finally... http://monovisiondesign.com/client/jquery/validate-url/form.php (I've got another problem with PHP config in that my script isn't connecting on this server, but it should still return false and cause an error on the form). The markup for the form is here: h

[jQuery] Re: Validate remote method response problem

2008-01-29 Thread Rus Miller
OK, finally... http://monovisiondesign.com/client/jquery/validate-url/form.php (I've got another problem with PHP config in that my script isn't connecting on this server, but it should still return false and cause an error on the form). The markup for the form is here: http://darthead.pastebi

[jQuery] Re: Validate remote method response problem

2008-01-28 Thread Rus Miller
Hi Jörn, Thanks, give me a couple hours to get back home and I'll put something up. On Jan 28, 4:12 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Rus Miller schrieb:> [...] > > > It'd be great if someone could give it a look. > > Your code looks fine. Could you post a testpage? > > Jörn

[jQuery] Re: Validate remote method response problem

2008-01-28 Thread Jörn Zaefferer
Rus Miller schrieb: [...] It'd be great if someone could give it a look. Your code looks fine. Could you post a testpage? Jörn