[jQuery] Re: Validation rules using alert() instead of message text

2010-01-27 Thread batrol
i got the basic sample there: http://stackoverflow.com/questions/1458605/how-to-display-messages-in-invalidhandler-in-jquery-validator

Re: [jQuery] Re: Validation on a Modal form does not work

2010-01-18 Thread Nathan Klatt
> On Jan 7, 10:39 am, Elan Noy wrote: >> I have amodalform that I want to validate. >> Themodalis based on the simplemodalplugin and thevalidationis >> based onvalidationplugin. >> Thevalidationworks well on a regular (nonmodal) form. ANy ideas? >> >>  

[jQuery] Re: Validation on a Modal form does not work

2010-01-18 Thread IntelliCAD
We have a similar problem. When trying to validate the modal dialog box decides its tired and goes away. Not sure how to do validation on the form without it disappearing... On Jan 7, 10:39 am, Elan Noy wrote: > I have amodalform that I want to validate. > Themodalis based on the simplemodalplugi

[jQuery] Re: Validation

2010-01-14 Thread TexInWien
Try this:         $(document).ready(function() {                 $("#autoSumForm").validate({                         rules: {                                 p1001: {number: true},                                 p1002: {number: true}                         },                         me

[jQuery] Re: Validation Plugin

2010-01-10 Thread Adrian Lynch
Got any code to show us? You need an event to fire off the remote call, either onBlur or onClick of a button. You examine the returned data and act accordingly. Adrian On Jan 10, 12:28 pm, Richard Beacroft wrote: > People enter an address to lookup on a google map, this makes an > asynchronous

[jQuery] Re: (validation): remote rule causes submit to abort, fix included

2009-12-22 Thread KenGreer
No, it does not submit the form after the async request finishes. (I'm using the latest 1.6) Ken On Dec 21, 6:30 am, Jörn Zaefferer wrote: > The plugin will submit the form after the async request finishes. The > remaining problem is that any submit-button won't be submitted. Maybe thats > the p

[jQuery] Re: validation method not working in ie

2009-11-30 Thread hcvitto
Has anyone any clue for this? On Nov 27, 5:09 pm, hcvitto wrote: > Hi > i'm using the validation plugin on a form. I added three methods to > check that three select value are not equal but it doesn't work in ie. > here's the page > > http://www.fepgroup.it/community/registrati__.php > > Any idea

Re: [jQuery] Re: validation: how do I call a function to perform after a validation is done?

2009-11-19 Thread Atkinson, Sarah
Ok I'm using this invalidHandler: function(form, validator) { PossitionStuff.possitionErrors(); }, And it works but it doesn't fire till the second validation I need it to fire on the first go around too On 11/18/09 4:06 PM, "StephenJacob" wrote: Hmm, i'm not really sure how to pul

[jQuery] Re: validation: how do I call a function to perform after a validation is done?

2009-11-18 Thread StephenJacob
Hmm, i'm not really sure how to pull that off. I would look into the showErrors option or possibly the Valid function. http://docs.jquery.com/Plugins/Validation/validate http://docs.jquery.com/Plugins/Validation/valid Good luck and let us know how things turn out for ya! On Nov 18, 3:47 pm, "

Re: [jQuery] Re: validation: how do I call a function to perform after a validation is done?

2009-11-18 Thread Atkinson, Sarah
I want the function to trigger when there are errors it's to alter the position of both the errors and other elements on the page. So I got the function to fire but I can't seem to changes the css on the error boxes. $('label .error').css({'left' : basePossitionOffset.left}); Does not w

[jQuery] Re: validation: how do I call a function to perform after a validation is done?

2009-11-18 Thread StephenJacob
It depends on your method of validation. Here is the form/validation system I use for my contact form. Hope this helps! $(document).ready(function() { $("#contactForm").validate({ rules: { fullname: { required: t

[jQuery] Re: Validation plugin rules() ???

2009-11-16 Thread Jules
http://docs.jquery.com/Plugins/Validation/Methods Also, I found it was worth while to look into jquery.validation.js code. On Nov 17, 8:55 am, "Atkinson, Sarah" wrote: > Is there a list somewhere of what the options are for the rules (required, > email) > I can't seem to find more info on this

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
Ahhh... Ok, I might opt for just putting an error message after the element instead then rather than creating a box like i'm doing now. Many thanks Jorn for your help! On Nov 13, 5:43 pm, Jörn Zaefferer wrote: > Then this: > > ,success: function(element){ > 157 var errorDiv = element.parents('.

Re: [jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Jörn Zaefferer
Then this: ,success: function(element){ 157 var errorDiv = element.parents('.error'); 158 element.remove(); 159 errorDiv.siblings().remove(); 160 errorDiv.replaceWith(errorDiv.children()); 161 } You replace the div? That causing the DOM to rerender, including the input, killing the focus. Jörn

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
Strangely, It seems to be doing it even after removing jNice. - I've updated the test site. On Nov 13, 4:23 pm, Jörn Zaefferer wrote: > Looks like jNice is causing that issue. Did you try removing that to see > what happens? > > Jörn > > On Fri, Nov 13, 2009 at 4:58 PM, Samuurai wrote: > > Yeah.

Re: [jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Jörn Zaefferer
Looks like jNice is causing that issue. Did you try removing that to see what happens? Jörn On Fri, Nov 13, 2009 at 4:58 PM, Samuurai wrote: > Yeah.. > > www.racedaystaff.com - log in as jorn/jorn then click "proceed to > site" then click "register" at the top. > > Thanks for looking at this !

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
Sorry - I have a goldfish memory today. - Repeating myself :p On Nov 13, 4:01 pm, Samuurai wrote: > Oh - Log in as jorn/jorn > > On Nov 13, 3:58 pm, Samuurai wrote: > > > Yeah.. > > >www.racedaystaff.com-log in as jorn/jorn then click "proceed to > > site" then click "register" at the top. > > >

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
Oh - Log in as jorn/jorn On Nov 13, 3:58 pm, Samuurai wrote: > Yeah.. > > www.racedaystaff.com- log in as jorn/jorn then click "proceed to > site" then click "register" at the top. > > Thanks for looking at this ! > > On Nov 13, 3:51 pm, Jörn Zaefferer > wrote: > > > Do you have a testpage? > >

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
Yeah.. www.racedaystaff.com - log in as jorn/jorn then click "proceed to site" then click "register" at the top. Thanks for looking at this ! On Nov 13, 3:51 pm, Jörn Zaefferer wrote: > Do you have a testpage? > > Jörn > > On Fri, Nov 13, 2009 at 4:40 PM, Samuurai wrote: > > I'm having a stran

[jQuery] Re: (validation) Validation plugin submitHandler

2009-11-12 Thread mcrawford
Also, that doesn't explain why the form still submits when I call form.submit(). Since submit is no longer a function, the form should never get submitted in that case. On Nov 12, 2:05 pm, Jörn Zaefferer wrote: > Use a different name for the submit-button. Using name="submit" you override > the a

[jQuery] Re: (validation) Validation plugin submitHandler

2009-11-12 Thread mcrawford
Right, thanks. I mentioned that in my initial post. But if I rename the submit-button, if you click the Cancel button, that value of cancel=Cancel will not get sent in the post. Any ideas why? On Nov 12, 2:05 pm, Jörn Zaefferer wrote: > Use a different name for the submit-button. Using name="su

[jQuery] Re: Validation

2009-10-27 Thread James
Read this documentation page on try to achieve what you want: http://docs.jquery.com/Plugins/Validation/Methods/remote On Oct 27, 1:08 pm, Ryan wrote: > I have seriously been fighting this issue for hours.  I would > appreciate some advice when someone gets a chance. > > I am wanting to check my

[jQuery] Re: validation plugin addMethod does not work for me.

2009-10-22 Thread JMan
Thanks Leonardo... I figured it out after digging through several examples. The documentation for this plugin has a huge gap in it. It shows an example of how to define a custom validator but no where does it explain how to use it. The trick being as you mentioned, defining it in the Rules or you

[jQuery] Re: validation plugin addMethod does not work for me.

2009-10-22 Thread Leonardo K
One thing is your method name and other is your field name. If the name of your field is company and your method is company so: rules:{ company:{ company:true } } Maybe is better rename your method to not confuse. On Thu, Oct 22, 2009 at 13:24, JMan wrote: > > Still no go...

[jQuery] Re: validation plugin addMethod does not work for me.

2009-10-22 Thread JMan
Still no go... below is my code. I just want to pop a dialog to ask the user if they are sure they want to leave the company name blank. The field is not required. I thought it would be easier than this? I can't get teh addMethod to work or fire at all on validation. //validates the form

[jQuery] Re: validation plugin addMethod does not work for me.

2009-10-21 Thread Leonardo K
U need set the rules for your validation: frmSubmittal.validate({ debug: false, focusCleanup: false, focusInvalid: false, onfocusout: false, onkeyup: false, errorPlacement: function(error, element) { error.prependTo( element.parents("div.ctrlHolder")); }, er

[jQuery] Re: validation: preprocessing form fields ?

2009-10-18 Thread pike
apparenty not :-) just for the record - i'm doing things like this: jQuery.validator.addMethod( "lowercase", function(value, element) { jQuery(element).val(value.toLowerCase()); return true; },"" ) which i can then apply in validation like va

[jQuery] Re: Validation plugin: textarea to allow only digits, but allowing linebreaks?

2009-10-15 Thread Leonardo K
You can create your own validate method: http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage jQuery.validator.addMethod("digitsAndLineBreak", function(value, element) { return /^[\d|\n]+$/.test(value); }, "Please enter only digits"); then: $("#quicksend_form").val

[jQuery] Re: Validation: Form with multiple submit buttons having different validation rules

2009-10-03 Thread NovoGeek
I have seen the login form example (http://jquery.bassistance.de/ validate/demo/login/), but I cannot use it as I have to manually change css classes for all required elements. Can someone help me out in this issue? Should I write custom methods for this? On Oct 2, 10:14 pm, NovoGeek wrote: > H

[jQuery] Re: Validation help needed

2009-10-02 Thread James
You should not be calling submit() first. You only call it after everything is validated. This can be as easy as a if-statement. Here's a simple example. Modify it to work with your scenrio. $(function() { $('#testForm').bind('submit', function() { $(this).validate(validation_options)

[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7
Cleaned up the test page: http://pastie.org/627561 On Sep 23, 10:35 am, chief7 wrote: > I created a test page -http://pastie.org/627543 > > steps to reproduce: > > -open the page in a browser > -add a letter to one of the amount inputs > -click on another input > -the validation should show > -

[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7
I created a test page - http://pastie.org/627543 steps to reproduce: -open the page in a browser -add a letter to one of the amount inputs -click on another input -the validation should show -go back to the same input and remove the letter you added -the error should be hidden but its not On S

[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7
Still 0. On Sep 23, 8:20 am, Jörn Zaefferer wrote: > Try this: > > $("label[for='orders[4].elements[2].Value']").length > > > > On Wed, Sep 23, 2009 at 3:17 PM, chief7 wrote: > > > i can't reproduce on a test page.  I updated to 1.5.5, but no change. > > > the page in question is dynamically ge

[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7
This is an issue in IE7, IE8, FF3 and Chrome 3. On Sep 23, 8:17 am, chief7 wrote: > i can't reproduce on a test page.  I updated to 1.5.5, but no change. > > the page in question is dynamically generated using AJAX data calls. > > i can see the error label in the js console: > > >>$("label.error

[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread Jörn Zaefferer
Try this: $("label[for='orders[4].elements[2].Value']").length On Wed, Sep 23, 2009 at 3:17 PM, chief7 wrote: > > i can't reproduce on a test page.  I updated to 1.5.5, but no change. > > the page in question is dynamically generated using AJAX data calls. > > i can see the error label in the j

[jQuery] Re: (validation) removal of error message problem

2009-09-23 Thread chief7
i can't reproduce on a test page. I updated to 1.5.5, but no change. the page in question is dynamically generated using AJAX data calls. i can see the error label in the js console: >>$("label.error").length 1 >>$("label.error").toHtml() "Only numeric values are permitted." but the 'for' att

[jQuery] Re: (validation) removal of error message problem

2009-09-22 Thread Jörn Zaefferer
Please update to 1.5.5 - also, please provide a testpage, otherwise I can't help. Jörn On Tue, Sep 22, 2009 at 11:08 PM, chief7 wrote: > > fyi - using jquery.validate.js version 1.5.2 > > On Sep 22, 3:39 pm, chief7 wrote: >> looks like this issue is caused by the name of the input.  the name i

[jQuery] Re: (validation) removal of error message problem

2009-09-22 Thread chief7
fyi - using jquery.validate.js version 1.5.2 On Sep 22, 3:39 pm, chief7 wrote: > looks like this issue is caused by the name of the input.  the name is > "orders[5].elements[2].Value" which an attribute selector won't find > (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is >

[jQuery] Re: (validation) removal of error message problem

2009-09-22 Thread chief7
looks like this issue is caused by the name of the input. the name is "orders[5].elements[2].Value" which an attribute selector won't find (ie. $("input[for=orders[5].elements[2].Value]")), but if the name is "elements[2].Value" it works fine. the 'for' attribute selector is used on line 630 of

[jQuery] Re: Validation, ignore specific words

2009-09-19 Thread Jörn Zaefferer
You can avoid that issue by using a solution that doesn't modify the inputs value. The (planned) jQuery UI watermark widget does that, you can get the code from labs here: http://jquery-ui.googlecode.com/svn/branches/labs/watermark/ui/ui.watermark.js A sort-of demo is here: http://www.commadot.co

[jQuery] Re: validation: how do I make sure a radio button is picked?

2009-09-02 Thread RobG
On Sep 3, 6:17 am, Matt Wilson wrote: > I have a list of radio buttons, all with the same name, and each has a > different value. > > I want a validator that tests if one is picked.  How do I do this? Set one as checked by default (as suggested by the W3C HTML specification), no script or vali

[jQuery] Re: validation: how do I make sure a radio button is picked?

2009-09-02 Thread Matt Quackenbush
Perhaps I am misunderstanding something in your requirements, but with the validation plugin (link below), it is as simple as adding class="required" to the input tag. http://docs.jquery.com/Plugins/Validation HTH

[jQuery] Re: Validation question

2009-08-31 Thread #micah
whoops! instead of '#divSteps3' i meant 'div.error-message' next time i should proofread On Aug 31, 3:34 pm, "#micah" wrote: > only perform the post if the error message div isnt there, or has no > text in it > > if( !($('#divSteps3')==undefined) && $('div.error-message').text > ().length>0

[jQuery] Re: Validation question

2009-08-31 Thread #micah
only perform the post if the error message div isnt there, or has no text in it if( !($('#divSteps3')==undefined) && $('div.error-message').text ().length>0) ) something like that On Aug 31, 1:53 pm, "Dave Maharaj :: WidePixels.com" wrote: > I have this script > > $(document).ready( function(

[jQuery] Re: (Validation) How to use with Multi-Select?

2009-08-27 Thread Psyclo
Thanks for responding so quickly. Unfortunately, my form just isn't working like yours. I don't see what I've done wrong. Maybe you can see something? Here is the code: Select a person First Person Second Person Third Person $.validator.addClassRules({ multi

[jQuery] Re: (Validation) How to use with Multi-Select?

2009-08-27 Thread Jörn Zaefferer
Here are examples with multi-selects: http://jquery.bassistance.de/validate/demo/radio-checkbox-select-demo.html Jörn On Thu, Aug 27, 2009 at 3:04 PM, Psyclo wrote: > > I have a form with a multi-select field that needs to be validated, so > at least one option is selected.  Is there a setting I

[jQuery] Re: (Validation) Problem with "All or Nothing" fields

2009-08-27 Thread Psyclo
Can anyone help with this, Please? Thanks.

[jQuery] Re: validation - multiple errorPlacements

2009-08-12 Thread nouky
I did not understand this Jörn Zaefferer wrote: > > > seedy schrieb: >> Is it possible to use errorPlacement with the validation plugin to have a >> different placement for each field validated? >> >> ie. >> $('#testForm').validate({ >> rules:{ >> firstname:{required:true}, >

[jQuery] Re: Validation Error message help

2009-08-11 Thread Jules
Check the error message existence before adding a new error msg if ($('#'+fieldName+'-exists').length = 0) $('#username').after('' + error + ''); On Aug 12, 2:17 am, "Dave Maharaj :: WidePixels.com" wrote: > I have this script: > > $(document).ready( function() { > >     $('#username').blur(

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
DO NOT include hidden fields in the plugin data. I had 3 hidden fields that weren't required but they were phoneUS. That must be a no no. I havent thought about the logic behind... but I am moving on to the next problem. and it may have been that i had no messages setup for them. only rules.

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
Here it is minus the submit handler var v = $("#myform").validate({ rules: { username: {required: true, minlength: 4, remote: {url:"lookup.php", type : "post", data: {table:"members",

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Jörn Zaefferer
Please show the rest of your code. Jörn On Mon, Aug 10, 2009 at 11:49 PM, Miket3 wrote: > > Here is my handler: > >   submitHandler: function(form) { >     alert('I CANT GET THIS TO TRIGGER'); >  }, > > > Here is my button: > > > > How do i trigger a validate when the submit button is clicked?

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
On Mon, Jul 27, 2009 at 6:06 PM, Jörn Zaefferer wrote: > > Having JS sanitize for the backend is somewhat dubious, I'd not go > there, but you probably don't want to discuss that. I think we're in agreement there, actually. JS provides no security and shouldn't be relied on. Rather I'm looking

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Jörn Zaefferer
Having JS sanitize for the backend is somewhat dubious, I'd not go there, but you probably don't want to discuss that. Anyway, a validation method has access to the validate element, so you could as well write a method that just sanitizes, nothing else. Combine that with a strict validation metho

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Brett Ritter
On Mon, Jul 27, 2009 at 5:20 PM, Jörn Zaefferer wrote: > You could start by writing custom methods for each of these input > types, and where possible, delegate to the existing methods: > http://docs.jquery.com/Plugins/Validation/Validator/addMethod If I'm following you, you're saying to have val

[jQuery] Re: Validation with rewriting

2009-07-27 Thread Jörn Zaefferer
You could start by writing custom methods for each of these input types, and where possible, delegate to the existing methods: http://docs.jquery.com/Plugins/Validation/Validator/addMethod What do you think? Jörn On Mon, Jul 27, 2009 at 8:42 PM, Brett Ritter wrote: > > I considering input rewri

[jQuery] Re: Validation plugin 1.5.5 error in IE6

2009-07-23 Thread Rio
It would be great if you could post your repacked version for us. Thanks! -Mario

[jQuery] Re: Validation plugin 1.5.5 error in IE6

2009-07-23 Thread Rio
I found this link: http://return-true.com/2008/12/fixing-jquery-validator-plugin-in-internet-explorer-6/ Looks like it's a character set issue. -Mario On Jun 29, 4:21 pm, Tristan wrote: > The jquery.validate.pack.js file found > onhttp://bassistance.de/jquery-plugins/jquery-plugin-validati

[jQuery] Re: Validation plugin - submit form without validation

2009-07-20 Thread Jules
Try $("#frm")[0].submit() On Jul 20, 1:56 pm, Adam P wrote: > I'm using the Validation plugin for JQuery and was wondering if there > was a function to submit the form without causing it to validate the > form.  I have a table with a list of radio-buttons and above that is a > drop down list of

[jQuery] Re: (Validation) How to submit a form without validating

2009-07-16 Thread mnaveed
Thanks Jörn , this is exactly what I need. On Jul 16, 12:57 pm, Jörn Zaefferer wrote: > You can add a class="cancel" to that button B. The plugin will then > skip the validation. > > Jörn > > On Thu, Jul 16, 2009 at 9:05 AM, mnaveed wrote: > > > Hi, > > I am using the Jquery validationss plugin

[jQuery] Re: (Validation) How to submit a form without validating

2009-07-16 Thread Jörn Zaefferer
You can add a class="cancel" to that button B. The plugin will then skip the validation. Jörn On Thu, Jul 16, 2009 at 9:05 AM, mnaveed wrote: > > Hi, > I am using the Jquery validationss plugin for my form validations. Now > I have a situation where I have two submit buttons in a single form > (

[jQuery] Re: validation plugin's date method doesn't like mm-dd-yyyy formatted dates

2009-07-14 Thread Jörn Zaefferer
The default date validation is quite weak, indeed. You can add your own method, maybe using datejs.com, easily: http://docs.jquery.com/Plugins/Validation/Validator/addMethod Jörn On Tue, Jul 14, 2009 at 10:47 PM, Matt Wilson wrote: > > I'm using this validation plugin > http://bassistance.de/jq

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread Mean Mike
what you should do is take the onchange event out of the html and put it into a document ready like this $(document).ready(function(){ $("#State").change(function() { //check to see if the feild has a value if ($(this).val() != ""){

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread 刘永杰
sorry!i didn't use JQuery Validation plug in. 2009/7/13 mnaveed > > I am using the JQuery Validation plug in to validate my form. How can > i do this with that? > > > On Jul 13, 1:34 pm, 刘永杰 wrote: > > is it difficult?$("#State").val() > > > > 2009/7/13 mnaveed > > > > > > > > > Hi, > > > I ha

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread mnaveed
I am using the JQuery Validation plug in to validate my form. How can i do this with that? On Jul 13, 1:34 pm, 刘永杰 wrote: > is it difficult?$("#State").val() > > 2009/7/13 mnaveed > > > > > Hi, > > I have a select box with and onchange event to get the data from > > serever, > > > > > > Now i

[jQuery] Re: (Validation) how to add validation on a select box with auto post

2009-07-13 Thread 刘永杰
is it difficult?$("#State").val() 2009/7/13 mnaveed > > Hi, > I have a select box with and onchange event to get the data from > serever, > > > > > Now i want to validate that if no value is selected from the above > list, then it should not send the ajax request. How can i apply the > Jquery v

[jQuery] Re: [validation] how to return for jquery.Format

2009-07-09 Thread Manolet Gmail
how i can use variables to build the url? On Sat, Jul 4, 2009 at 12:08 PM, Jörn Zaefferer wrote: > > Use the remote method: > http://docs.jquery.com/Plugins/Validation/Methods/remote#url > > Jörn > > On Sat, Jul 4, 2009 at 6:30 PM, Manolet Gmail wrote: >> >> Hi, im adding a method. i want to disp

[jQuery] Re: [validation] Remote rule, show loading symbol

2009-07-08 Thread Jörn Zaefferer
You can use various ajax events to handle that, see: http://docs.jquery.com/Ajax_Events Eg. display the loading indicator on ajaxStart and hide it on ajaxStop. Jörn On Mon, Jul 6, 2009 at 8:02 PM, pimousse wrote: > > Hi, > I am using a remote rule & an external file to check in a form that a >

[jQuery] Re: [validation] how to return for jquery.Format

2009-07-04 Thread Manolet Gmail
How i can use the remote method to build the url like: "/promotions/checkName/"+name+'/'+promotion_id, type:'post', ? On Sat, Jul 4, 2009 at 12:08 PM, Jörn Zaefferer wrote: > > Use the remote method: > http://docs.jquery.com/Plugins/Validation/Methods/remote#url > > Jörn > > On Sat, Jul 4, 2009

[jQuery] Re: [validation] how to return for jquery.Format

2009-07-04 Thread Jörn Zaefferer
Use the remote method: http://docs.jquery.com/Plugins/Validation/Methods/remote#url Jörn On Sat, Jul 4, 2009 at 6:30 PM, Manolet Gmail wrote: > > Hi, im adding a method. i want to display a message like: > THECONTENTOFMYINPUT is already user. this is what im doing. > >          jQuery.validator.

[jQuery] Re: [Validation] Internationalization support

2009-05-18 Thread MaxMax
But all the range, min, max don't work because they use the "standard" javascript string to number conversions that are USA only. I "patched" the validation plugin to work in italy (but now it works only in italy) On 18 Mag, 22:22, Jörn Zaefferer wrote: > You can write custom methods to extend t

[jQuery] Re: [Validation] Internationalization support

2009-05-18 Thread Jörn Zaefferer
You can write custom methods to extend the plugin with whatever methods you need: http://docs.jquery.com/Plugins/Validation/Validator/addMethod You should be able to use numberDE for that number format. Look at dateDE or any of the other date methods to see how they are implemented. Jörn On Mon

[jQuery] Re: [validation] I want to add validation for a reCAPTCHA image. Can I give this field error message a unique class?

2009-05-13 Thread Jörn Zaefferer
You can use the errorPlacement-option to customize the placement. Take a look at the source of this demo for a good example: http://jquery.bassistance.de/validate/demo/milk/ Jörn On Wed, May 13, 2009 at 2:30 AM, wjs3 wrote: > > I have a form consisting mainly of text inputs and selects.  The >

[jQuery] Re: [Validation] Email

2009-05-09 Thread Jörn Zaefferer
Sure, thats just as valid as em...@example.co.uk is. Jörn On Fri, May 8, 2009 at 8:57 PM, Brett wrote: > > I noticed that if you do the email: true in the validation and then > try and type an email such as: > > em...@example.com.com > > it will mark it as valid. Is this intended? > > > Even sa

[jQuery] Re: validation showErrors error

2009-05-07 Thread Brad
Oops, hit send accidentally. The problem was that I didn't need to iterate over each error. A single call to showErrors handles them all. if(data.status == false) { // update form errors $("#calib_entry").validate().showErrors(data.errors); } On May 7, 10:39 am, Brad wrote: > The .each

[jQuery] Re: validation showErrors error

2009-05-07 Thread Brad
The .each is the problem: if(data.status == false) { // update form errors $("#calib_entry").validate().showErrors(data.errors); } On May 7, 10:35 am, Brad wrote: > I'm using the validation plugin to perform client side validation on a > form tha

[jQuery] Re: validation plug in flicker

2009-04-24 Thread Jörn Zaefferer
Could you provide a testpage? Haven't seen that yet... Jörn On Fri, Apr 24, 2009 at 4:45 AM, Rabbott wrote: > > I am using the jquery validation plugin, i am wanting to place all the > errors in one div at the top of the form - which works. The problem is > that the first time I submit the form

[jQuery] Re: Validation plugin - Using with 'button' buttons?

2009-04-22 Thread Brad
In the button's click handler: if ($("#myform").validate().form()) { // submit form } On Apr 22, 9:48 am, Brad wrote: > To be more specific, validation is working prior to clicking the > button. For example I have a date field in the form

[jQuery] Re: Validation plugin - Using with 'button' buttons?

2009-04-22 Thread Brad
To be more specific, validation is working prior to clicking the button. For example I have a date field in the form and entering garbage will present an "enter a valid date" message, but I also have some fields that are simply required. Clicking the button doesn't appear to run any pre-submit val

[jQuery] Re: Validation plugin (bassistance.de) problem

2009-04-22 Thread Jonas
Yeah, I know about the regular behaviour, but the problem is that the live validation behaves incorrect. When it validates an input as valid, it sometimes doesn't revalidate it when you clear the field (so it should state as invalid, but it still says it's valid). The behaviours is random. Somet

[jQuery] Re: Validation plugin (bassistance.de) problem

2009-04-17 Thread Tom Worster
i also detected some difference between the demo's behavior and the docs. i'm not sure what sequence of ui actions led to the result in the attached png but i've seen it twice now. On 4/17/09 8:17 AM, "Jörn Zaefferer" wrote: > > The behaviour is described here: > http://docs.jquery.com/Plugins/

[jQuery] Re: Validation plugin (bassistance.de) problem

2009-04-17 Thread Jörn Zaefferer
The behaviour is described here: http://docs.jquery.com/Plugins/Validation/Reference#Validation_event Jörn On Fri, Apr 17, 2009 at 10:46 AM, Jonas wrote: > > Example form: http://jquery.bassistance.de/validate/demo/milk/ > (this is the demo for the script on bassistance.de) > > When it does 'li

[jQuery] Re: Validation and Facebox

2009-04-15 Thread Ander Aznar
Thanks for your advice Byron! I was experiencing the same problem Bob described and your solution worked perfectly. BTW, using clone(true) didn't work in my case neither. On Mar 18, 10:36 am, byron wrote: > In case anyone else stumbles upon this, I will give my solution to the > problem (hours l

[jQuery] Re: Validation plugin remote problem

2009-04-13 Thread Jörn Zaefferer
The response for the remote request is wrong: http://betan.midoo.se/?data%5BUser%5D%5Bemail%5D=bla%40bla.com That should be just "true", nothing else. And, completely unrelated: The error message isn't hidden for a valid field. You can check the state of the field in Firebug. Once its valid, the e

[jQuery] Re: Validation plugin remote problem

2009-04-13 Thread Victorr
Sure. I translated the error messages to english so that you would understand :) http://betan.midoo.se On 13 Apr, 16:28, Jörn Zaefferer wrote: > Could you post a testpage? Can't see anything wrong in the snippets > you provided - its probably something seemingly unrelated. > > Jörn > > On Sun, A

[jQuery] Re: Validation plugin remote problem

2009-04-13 Thread Jörn Zaefferer
Could you post a testpage? Can't see anything wrong in the snippets you provided - its probably something seemingly unrelated. Jörn On Sun, Apr 12, 2009 at 4:18 PM, Victorr wrote: > > Ok. But what do i need too echo to get a false value and an error > message? > > thanks! > > On 12 Apr, 10:37, J

[jQuery] Re: Validation plugin remote problem

2009-04-12 Thread Victorr
Ok. But what do i need too echo to get a false value and an error message? thanks! On 12 Apr, 10:37, Jörn Zaefferer wrote: > You need to echo "true" for a valid value. > > Jörn > > On Sun, Apr 12, 2009 at 1:02 AM, Victorr wrote: > > > I'm using CakePHP, jQuery and the validation plugin. I'm ha

[jQuery] Re: Validation plugin remote problem

2009-04-12 Thread Jörn Zaefferer
You need to echo "true" for a valid value. Jörn On Sun, Apr 12, 2009 at 1:02 AM, Victorr wrote: > > I'm using CakePHP, jQuery and the validation plugin. I'm having some > problems. I'm trying to check if a email is already in use but I can't > seem to get it too work. > > I'm just trying to get

[jQuery] Re: Validation CheckBoxes group

2009-04-06 Thread Sean O
Luigi, This should work for you: var isChecked = false; $('.campi[name="license"]').each(function(){ if ( $(this).attr('checked') ) isChecked = true; }); SEAN O http://www.sean-o.com Ciupaz wrote: > > Hi all, > in my .aspx page I have a series of checkboxes for the driver license: >

[jQuery] Re: Validation one field depends on the value of another field

2009-04-02 Thread James
The infamous jQuery Validate Plug-in gets the job done: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Apr 2, 3:03 am, dremay wrote: > Hello, > > I want to validate a field by using JQuery and it also need to > consider the value of another field during the checking. > > I hav

[jQuery] Re: [validation]

2009-04-02 Thread david
Hi Jörn, yes I have had a look at the lozalization files. I have even create one. What I would like to know is how the plugin manages these files, as I don't know how to access them. Does the plugin itself retrieve the proper localization file? I have retrieve it by means of a localization plugi

[jQuery] Re: [validation]

2009-04-02 Thread Jörn Zaefferer
See any of the localization files for reference: http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/localization/messages_nl.js Jörn On Thu, Apr 2, 2009 at 8:01 AM, david.garc...@barcelonamedia.org wrote: > > Hello, > > I am using jQuery validation plugin. I have read about the plugin in

[jQuery] Re: Validation Success Callback

2009-04-01 Thread MonkeyBall2010
The single quotes around the window.location worked like a charm... Thanks a lot for your help! On Mar 31, 7:32 pm, James wrote: > Slight typo on the second option: > > setTimeOut(doSomething, 5000); > > function doSomething() { >      window.location = 'http://www.google.com'; > > } > > On Mar

[jQuery] Re: Validation Success Callback

2009-03-31 Thread James
Slight typo on the second option: setTimeOut(doSomething, 5000); function doSomething() { window.location = 'http://www.google.com'; } On Mar 31, 2:31 pm, James wrote: > In some common ways, you'd have to either do it: > > setTimeOut(function() { >      window.location = 'http://www.goog

[jQuery] Re: Validation Success Callback

2009-03-31 Thread James
In some common ways, you'd have to either do it: setTimeOut(function() { window.location = 'http://www.google.com'; }, 5000); or: setTimeOut(doSomething, 5000); doSomething() { window.location = 'http://www.google.com'; } or: setTimeout('window.location = "http://www.google.com";',

[jQuery] Re: Validation Success Callback

2009-03-31 Thread MonkeyBall2010
setTimeout(window.location = "http://www.google.com";, 5000); It seems that the script just completely ignores the timeout but executes the code anyways... What is really weird is that if I put some other code on a timer then it works correctly so maybe I am doing the redirect wrong?? On Mar 30,

[jQuery] Re: Validation Success Callback

2009-03-30 Thread James
Can you show us how the "//redirect" part of the code looks like? It should be on the lines of something like: setTimeOut(function() { location.href = '/somepage'; }, 2000); On Mar 30, 4:05 pm, MonkeyBall2010 wrote: > Yeah, that was just a typo on my behalf... The actual code does list > t

[jQuery] Re: Validation Success Callback

2009-03-30 Thread MonkeyBall2010
Yeah, that was just a typo on my behalf... The actual code does list the correct code... Any idea what I am doing wrong? On Mar 27, 1:17 pm, James wrote: > Javascript is case-sensitive: > 'setTimeOut' should be 'setTimeout' > > On Mar 26, 5:08 pm, MonkeyBall2010 wrote: > > > > > I am using the

[jQuery] Re: Validation

2009-03-30 Thread Jörn Zaefferer
As the author, I recommend this plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ You always have to write serverside validation. Clientside validation must be entirely optional. Thats pretty much all there is. Jörn On Sun, Mar 29, 2009 at 4:05 PM, iceangel89 wrote: > > wh

[jQuery] Re: Validation Success Callback

2009-03-27 Thread James
Javascript is case-sensitive: 'setTimeOut' should be 'setTimeout' On Mar 26, 5:08 pm, MonkeyBall2010 wrote: > I am using the validation plugin and the form plugin to validate my > form and then submit the information via ajaxSubmit. I have everything > working with the exception of my success ca

  1   2   3   4   >