[jQuery] Re: (validate plugin) dependency callback not being triggered

2009-11-09 Thread Brad Hile
Thanks Jules I'll give it a try now. I was looking for something that would trigger the validation but I thought it was automagically triggered onblur/keyup but perhaps thats only after the initially validate via submit * thanks for the typo spotting!.. totally missed that ta Brad On Nov 6, 11:1

[jQuery] Re: (validate plugin) dependency callback not being triggered

2009-11-05 Thread Jules
Hi, Validation only triggered if you call submit the page or call the $ ("form").valid() function. I didn't see any submit() or $ ("form").valid() call in your page. Try adding this to your page js script inside ready() $("#validateMe").click(function(){ if($("form").valid()) alert("Al

[jQuery] Re: (validate plugin) dependency callback not being triggered

2009-11-05 Thread Brad Hile
Bump > Hi > I've tried every way I can think of to use dependency to enable > additional elements to be required and have had no luck at all. I > simply want to enable "required" on a number of fields when a specific > radio button is selected and for it to be disabled when its not. > (These field

[jQuery] Re: validate plugin step by step form

2009-09-28 Thread James
You can create different options in a variable an assign it to $.validate(). var option1 = { rules: { ... } messages: { ... } } var option2 = { rules: { ... } messages: { ... } } Call the appropriate one depending on which step you're in: $("#saverForm").validate(option1); $("#s

[jQuery] Re: Validate Plugin - Charcode Warning in Firebug

2009-09-09 Thread Aaron Kreider
On Sep 9, 7:40 pm, Geoffrey wrote: > My first question is why are you using a development version of > Firebug? I copied and pasted the jQuery example into an html file and > tested it and I get no error in FF 3.5.2 with the current release > version of Firebug 1.4.2 There was a problem with goo

[jQuery] Re: Validate Plugin - Charcode Warning in Firebug

2009-09-09 Thread Geoffrey
My first question is why are you using a development version of Firebug? I copied and pasted the jQuery example into an html file and tested it and I get no error in FF 3.5.2 with the current release version of Firebug 1.4.2 Secondly, why are there 2 class declarations in your original input exam

[jQuery] Re: Validate Plugin - Charcode Warning in Firebug

2009-09-09 Thread Aaron Kreider
This happens on the example demo: http://docs.jquery.com/Plugins/Validation#Example Firefox 3.5.2 Firebug 1.5X.0a22

[jQuery] Re: [validate] plugin: combine features from multiple demos

2009-09-03 Thread seezee
hi, jörn, thanks for the great plugin. if i can get it working as we need it on our main site, we'll be adding it to all our other sites as well. i managed to get the form to validate w/ accordion functionality yesterday (i found the custom method before you replied), but i don't see how i can

[jQuery] Re: [validate] plugin: combine features from multiple demos

2009-09-03 Thread Jörn Zaefferer
Take a closer look at the multipart demo and its custom pageRequired-method - thats key! Jörn On Wed, Sep 2, 2009 at 11:24 PM, seezee wrote: > > i posted this to the plugin group, but it appears to be a dead forum > -- last post was february. i'm trying to combine features of these 2 > demos: >

[jQuery] Re: validate plugin only checking first required input

2009-07-14 Thread Mean Mike
I also found that validate requires the names of the fields to be unique On Jul 12, 7:23 pm, Mean Mike wrote: > you might be running into problems because you have spans with the > class "required" which is one used by jquery.validate > try giving those spans a slightly different class and maybe

[jQuery] Re: validate plugin only checking first required input

2009-07-12 Thread Mean Mike
you might be running into problems because you have spans with the class "required" which is one used by jquery.validate try giving those spans a slightly different class and maybe that will help Mean Mike On Jul 12, 6:12 am, Zac Witte wrote: > the validate plugin at the form at the below URL is

[jQuery] Re: [Validate plugin] Question about the 'remote' AJAX option

2009-07-09 Thread Guillaume Lecanu
On Jul 8, 6:31 pm, Jörn Zaefferer wrote: > The JSON response can be true/false, or a String, handled as false > (invalid), and the string will be used as the error message. You need > the latest version (1.5.5) for that to work properly. Perfect ! Thanks

[jQuery] Re: [Validate plugin] Question about the 'remote' AJAX option

2009-07-08 Thread Jörn Zaefferer
The JSON response can be true/false, or a String, handled as false (invalid), and the string will be used as the error message. You need the latest version (1.5.5) for that to work properly. Jörn On Wed, Jul 8, 2009 at 6:03 PM, Guillaume Lecanu wrote: > > Hi, > > I trying to replace my old AJAX

[jQuery] Re: Validate plugin: help with success function

2009-06-03 Thread Douglas Graves
Nevermind, I ended up trial and erroring through the plugin to find what I needed—it would be awesome if this could be added to the documentation for the plugin. The correct solution is below: $("#signup").validate({ //better error placement to keep from breaking the grid on checkboxes err

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-06-01 Thread MorningZ
Ya know.. you are going to run into major issues if the fix is that your code has to be at the problem You've got underlying issues that you really really should get help on before you continue... and it's absolutely impossible to do so unless you provide a live and working (well, *non-working*)

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-06-01 Thread stevegmag
Thanks everyone. I verified the includes and, not sure if this fixed it, but I moved all the validate code to the bottom of ready() function and everything started working. Really a great plugin! Having other issues, but will post those in new thread.

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-05-24 Thread amanda apple
ed that the paths are correct, neither of the plug-ins are >> working. >> > >> > >> > > src="/misc/js/customForm/cust_select_plugin.js"> >> > > src="/misc/js/validate/jquery.validate.js"> >> > >> >

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-05-24 Thread amanda apple
jquery.validate.js"> > > > > ________ > > From: Jörn Zaefferer > > To: jquery-en@googlegroups.com > > Sent: Sunday, May 24, 2009 9:26:24 AM > > Subject: [jQuery] Re: validate plugin error: $("#short-form").validate is

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-05-24 Thread MorningZ
gt; src="/misc/js/customForm/cust_select_plugin.js"> > src="/misc/js/validate/jquery.validate.js"> > > > From: Jörn Zaefferer > To: jquery-en@googlegroups.com > Sent: Sunday, May 24, 2009 9:26:24 AM > Subject: [jQuery] Re

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-05-24 Thread Jörn Zaefferer
gt; From: Jörn Zaefferer > To: jquery-en@googlegroups.com > Sent: Sunday, May 24, 2009 9:26:24 AM > Subject: [jQuery] Re: validate plugin error: $("#short-form").validate is > not a function > > You most likely screwed up the javscript include of > jquery.validate.

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-05-24 Thread Gallagher Steven
re working. From: Jörn Zaefferer To: jquery-en@googlegroups.com Sent: Sunday, May 24, 2009 9:26:24 AM Subject: [jQuery] Re: validate plugin error: $("#short-form").validate is not a function You most likely screwed up the javscript include of jquery.validate.js. M

[jQuery] Re: validate plugin error: $("#short-form").validate is not a function

2009-05-24 Thread Jörn Zaefferer
You most likely screwed up the javscript include of jquery.validate.js. Make sure the path is right. Jörn On Sat, May 23, 2009 at 5:51 PM, stevegmag wrote: > > jQuery JavaScript Library v1.3.2 > jQuery validation plug-in 1.5.2 > > I think I'm using this plug-in straight from the examples for a s

[jQuery] Re: Validate plugin not working

2009-03-24 Thread Jörn Zaefferer
I've added anothe paragraph: http://docs.jquery.com/Plugins/Validation/Reference#Markup_recommendations Also, when you enable the debug-option, a warning is logged for every input that doesn't have a name-attribute. Jörn On Tue, Mar 24, 2009 at 5:56 PM, Brendon G. wrote: > > I had a eureka mom

[jQuery] Re: Validate plugin not working

2009-03-24 Thread Brendon G.
I had a eureka moment last night, when i stumbled into that solution.. didn't see any mention of it in the docs though..

[jQuery] Re: Validate plugin not working

2009-03-24 Thread jdobs...@gmail.com
Perhaps it says somewhere in the doc that the name attribute is required but I sure as hell couldn't find it. Anyway try adding the name attribute with the same value as your id attribute for each form element. You should be relieved by what you find ;) On Mar 23, 3:29 pm, Brendon Gleeson wrot

[jQuery] Re: validate plugin (validate elements)

2009-03-17 Thread Mac
$.validator.addMethod("div", function(value, element, param) { var IsValid = true; var booleanFlag; var elements = $(param).find(":input") .not('input[type=hidden]') .not(":submit, :reset, :image, :button, [disabled]"); for (var i = 0; i < elements.length; i++) { if

[jQuery] Re: Validate plugin with radio button in IE 6 & 7

2009-03-11 Thread Glamorous
Nobody?

[jQuery] Re: Validate Plugin disabling other JS on the page

2009-03-03 Thread BSpizzle
ANSWER: This was being caused by the onclick event posting back, which the validate plugin had disabled. I changed the behavior of my radio buttons onclick method to get around this. On Mar 2, 1:16 pm, BSpizzle wrote: > Hello all, > > I am using the jQuery Validate plugin (http://docs.jquery.co

[jQuery] Re: [Validate] plugin fails on Safari

2009-02-23 Thread George
Hi Jörn Many thanks for your suggestion. In fact the problem was an obvious one that lay in the metadata. I had a class name of 'date' in my input field which was obviously clashing. I had totally overlooked that. Many thanks for writing a very flexible plugin. All the best George On Feb

[jQuery] Re: [validate] plugin maxlength bug with textarea?

2009-02-19 Thread rami
That works. Thank you for very fast answer and fix! Hopefully 1.5.2 comes out soon. Rami. On Feb 19, 1:41 pm, Jörn Zaefferer wrote: > Good call. My fix looks slightly different, but should work just as well. > > You can get the latest revision > here:http://jqueryjs.googlecode.com/svn/trunk/p

[jQuery] Re: [validate] plugin maxlength bug with textarea?

2009-02-19 Thread Jörn Zaefferer
Good call. My fix looks slightly different, but should work just as well. You can get the latest revision here: http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/jquery.validate.js Or wait for the 1.5.2 release. Jörn On Thu, Feb 19, 2009 at 11:43 AM, rami wrote: > > > When maxlength is

[jQuery] Re: [Validate] plugin fails on Safari

2009-02-18 Thread Jörn Zaefferer
Regular expressions are read to read, can't spot any obvious error with that, especially considering that it fails only in Safari. Here is a custom method for italian dates, not using regex, maybe it helps: jQuery.validator.addMethod( "dateITA", function(value, element) {

[jQuery] Re: [validate] Plugin Question

2009-02-05 Thread Chris
On Feb 5, 3:23 pm, Jörn Zaefferer wrote: > Could you provide a testpage? Your code looks fine. > > Jörn Sure. http://www.chris-gwen.com/ Right now Firebug says i'm missing a semicolon which breaks everything, but i don't see why it says that.

[jQuery] Re: [validate] Plugin Question

2009-02-05 Thread Jörn Zaefferer
Could you provide a testpage? Your code looks fine. Jörn On Thu, Feb 5, 2009 at 9:08 PM, Chris wrote: > > On Feb 5, 6:09 am, Leonardo K wrote: >> http://docs.jquery.com/Plugins/Validation/Methods/required#dependency... > > Ok, here's my markup and my attempt to do the conditional validation, >

[jQuery] Re: [validate] Plugin Question

2009-02-05 Thread Chris
On Feb 5, 6:09 am, Leonardo K wrote: > http://docs.jquery.com/Plugins/Validation/Methods/required#dependency... Ok, here's my markup and my attempt to do the conditional validation, but it obviously doesn't work. I only want the select (#select) to be required if the radio button (#accept) is c

[jQuery] Re: [validate] Plugin Question

2009-02-05 Thread Leonardo K
http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-expression On Thu, Feb 5, 2009 at 00:52, Chris wrote: > > On my site http://www.chris-gwen.com/ I use the plugin on the RSVP > tab. If you click the "Accept" radio button you get a dropdown. How > can I then set validation on

[jQuery] Re: [validate plugin] - not working with multiple forms

2009-01-29 Thread Joel Taylor
Thanks Jorn! That worked. :) Phew. On Jan 29, 12:05 pm, Jörn Zaefferer wrote: > Try this: > > $(".validate").each(function() { >   $(this).validate(); > > }); > > Jörn > > On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor wrote: > > > hi all - so I'm using the 'validate' plugin, and I seem to have a

[jQuery] Re: [validate plugin] - not working with multiple forms

2009-01-29 Thread Jörn Zaefferer
Try this: $(".validate").each(function() { $(this).validate(); }); Jörn On Thu, Jan 29, 2009 at 7:00 PM, Joel Taylor wrote: > > hi all - so I'm using the 'validate' plugin, and I seem to have an > issue where if I have multiple forms, the plugin only validates the > first form. > > $('.valid

[jQuery] Re: [validate plugin] contain number

2009-01-15 Thread Luke Adamis
Thanks! I did this so far: jQuery.validator.addMethod("hasNumber", function(value, element) { return this.optional(element) || /\d/.test(value); }, "Must contain a number."); seems working for now but I check the passwor

[jQuery] Re: [validate plugin] contain number

2009-01-15 Thread Jörn Zaefferer
digits requires digits only, eg. 123, number requires a decimal number, eg. 500.1. This extension might be a good starting point: http://view.jquery.com/trunk/plugins/validate.password/ The password rules are a bit more complex and are rated, and the rating is displayed. Take a look at the demo f

[jQuery] Re: [validate plugin] Conflict in using validation plugin with custom submit code

2009-01-14 Thread Fledder
hi Jorn, Done: http://dev.jquery.com/ticket/3862 On Jan 15, 12:01 am, Jörn Zaefferer wrote: > I agree that the missing submit button is a problem. Could you file a > ticket for that?http://dev.jquery.com/newticket(requires > registration) > > Thanks > Jörn > > > > On Wed, Jan 14, 2009 at 6:33

[jQuery] Re: [validate plugin] Conflict in using validation plugin with custom submit code

2009-01-14 Thread Jörn Zaefferer
I agree that the missing submit button is a problem. Could you file a ticket for that? http://dev.jquery.com/newticket (requires registration) Thanks Jörn On Wed, Jan 14, 2009 at 6:33 PM, Fledder wrote: > > Jorn, > > Thank you for responding. I seem to have been wrong in the information > I pro

[jQuery] Re: [validate plugin] Conflict in using validation plugin with custom submit code

2009-01-14 Thread Fledder
Jorn, Thank you for responding. I seem to have been wrong in the information I provided: The form DOES submit, but it does it so fast that it is hard to see. Normally the submit would cause a redirect. The reason it is not redirecting is because my back-end PHP script relies on the post containi

[jQuery] Re: [validate plugin] Conflict in using validation plugin with custom submit code

2009-01-14 Thread Jörn Zaefferer
Could you post a complete testpage? Looks like your extracts are missing something... Jörn On Wed, Jan 14, 2009 at 12:00 AM, Fledder wrote: > > hi, > > Like others I seem to have ran into the "double-click to submit > problem". Allow me to explain: > > I have a registration form which validates

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-26 Thread Alexsandro_xpt
Good, but in this demo, Can I do this in inline rules like that above? Eg.: Text Thanks On 24 dez, 11:35, "Jörn Zaefferer" wrote: > Take a look at this > demo:http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymc... > Will be included in 1.5.1, probably with a few more t

[jQuery] Re: validate plugin with one element

2008-12-25 Thread Jörn Zaefferer
The remote method handles the resubmit. To find the actual issue here, I'd need a complete testpage. Jörn On Wed, Dec 24, 2008 at 3:54 PM, eben wrote: > > I have a simple form with one select list as it's element. I am using > the validate plugin to do remote ajax validation on that element. T

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-24 Thread Jörn Zaefferer
Take a look at this demo: http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymce/index.html Will be included in 1.5.1, probably with a few more tweaks. Jörn On Wed, Dec 24, 2008 at 1:59 PM, Alexsandro_xpt wrote: > > Jörn Zaefferer, There are way valitade fields like a WYSIWYG edi

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-24 Thread Alexsandro_xpt
Jörn Zaefferer, There are way valitade fields like a WYSIWYG editors? Thz On 23 dez, 22:22, "Jörn Zaefferer" wrote: > There are a few additional methods > here:http://jquery.bassistance.de/validate/additional-methods.js(also > included in the download) > > I guess you're looking for the lette

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-23 Thread jsrobinson
Jörn: your replies are always timely and helpful. Worked like a charm the first go! deronsizemore: thank you for the example code, I see how to build custom rules now (not that I couldn't have gone through Jörn's documenation and eventually figured it out :) Cheers! Jason On Dec 23, 4:22 pm, "J

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-23 Thread deronsizemore
If you're new to jQuery (like me) this solution may not be totally obvious to you. I posted the same question and received responses pointing me in the right direction for the code to use, but I wasn't sure what to do with that code once I found it. So, here's my jQuery validation code for usin

[jQuery] Re: validate plugin date()

2008-12-23 Thread Dave Methvin
> I have a date filed that needs to be validated only for   > one type of date format: mm/dd/yyy. > is there a way to restrict that to only one format? This should work for validating USA-style mm/dd/ dates. $.validator.addMethod("usadate", function(value, element){ // Start with basic ma

[jQuery] Re: validate plugin date()

2008-12-23 Thread Jörn Zaefferer
The included date methods are barely useful. Depending on your needs, you're probably better off writing your own methods. You could use the datejs.com library for the date parsing stuff. Jörn On Tue, Dec 23, 2008 at 10:37 PM, Luke Adamis wrote: > > hello all, > I have a date filed that needs to

[jQuery] Re: Validate Plugin: Alpha Only

2008-12-23 Thread Jörn Zaefferer
There are a few additional methods here: http://jquery.bassistance.de/validate/additional-methods.js (also included in the download) I guess you're looking for the lettersonly method. Jörn On Wed, Dec 24, 2008 at 12:59 AM, jsrobinson wrote: > > I need to validate a field to only accept A-Z,a-z

[jQuery] Re: [validate plugin] How to call a function before the validation start?

2008-12-23 Thread Rick Faircloth
Thanks, Jorn... I'll check it out. Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Jörn Zaefferer > Sent: Tuesday, December 23, 2008 9:42 AM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: [

[jQuery] Re: [validate plugin] How to call a function before the validation start?

2008-12-23 Thread Rick Faircloth
Hi, Giovanni... I don't have an answer to your specific question, but I do have a question for you, if you don't mind. I've been trying to use Jorn's Validate plug-in, as well, and trying to get it to validate "onblur" or "onfocusout". Have you been able to accomplish this? Rick > -Orig

[jQuery] Re: [validate plugin] How to call a function before the validation start?

2008-12-23 Thread Jörn Zaefferer
The option you are looking for is called "submitHandler". Details here: http://docs.jquery.com/Plugins/Validation/validate#toptions Jörn On Tue, Dec 23, 2008 at 11:43 AM, Giovanni Battista Lenoci wrote: > > Hi, I'm using the validate plugin, I have a comment form where I want to > leave the poss

[jQuery] Re: Validate plugin - help with name vs Id for rules; checkbox in strange format

2008-10-30 Thread luke BAKING barker
I have found the method countUnchecked() / :unchecked , but am unsure how to use it in this context. I could do that for the form I suppose, and block a validation if it does not find zero unchecked elements. could someone give a quick example of how I might apply this to my form? Luke On Oct

[jQuery] Re: Validate plugin - help with name vs Id for rules; checkbox in strange format

2008-10-30 Thread luke BAKING barker
Hey Jorn ignore: ".checkbox :hidden" and ignore: ":hidden" - neither works for me. I have also tried ignore: "#CoverAgreed_" which didnt work. I wonder whether the underscore is recognized ? I am validating it by giving ti a required rule like os - 'data[Cover][agreed]': {

[jQuery] Re: Validate plugin - help with name vs Id for rules; checkbox in strange format

2008-10-29 Thread Jörn Zaefferer
Try to set ignore: ":hidden". Jörn On Wed, Oct 29, 2008 at 6:39 PM, luke BAKING barker <[EMAIL PROTECTED]> wrote: > > hi > > first, I want to say how cool this validation plugin is, very slick - > especially like the eager validation aspect. > > I use CakePHP, and I am trying to check a "terms" b

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-29 Thread Jörn Zaefferer
No, I'm proposing to write your own custom method, using $.validator.addMethod. Custom methods allow you to extend the validation with your application specific requirements. Jörn On Wed, Oct 29, 2008 at 12:38 AM, Validatorian <[EMAIL PROTECTED]> wrote: > > Maybe I misunderstood you, but it seems

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
Maybe I misunderstood you, but it seems like you're referring to "age- method" as if it already exists? Or are you saying to use "math" and do it that way? On Oct 28, 4:00 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Adding the parent-age-check is just another method. In this case, I'd > add

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Jörn Zaefferer
Adding the parent-age-check is just another method. In this case, I'd add a custom age-method (http://docs.jquery.com/Plugins/Validation/Validator/addMethod), and use that together with date and required. Jörn On Tue, Oct 28, 2008 at 11:49 PM, Validatorian <[EMAIL PROTECTED]> wrote: > > For what

[jQuery] Re: Validate Plugin - Multiple Requirements? [validate]

2008-10-28 Thread Validatorian
For what it's worth, if you can think of a better (read: cleaner) way to do what I'm currently doing, please let me know :) On Oct 28, 11:26 am, Validatorian <[EMAIL PROTECTED]> wrote: > I'm doing something similar to this > example:http://docs.jquery.com/Plugins/Validation/Methods/required#depe

[jQuery] Re: Validate Plugin - On Error?

2008-10-28 Thread Jörn Zaefferer
Use the highlight (and unhighlight) options. Jörn On Tue, Oct 28, 2008 at 7:30 AM, Validatorian <[EMAIL PROTECTED]>wrote: > > I need to perform a custom action when it turns invalid. > > Currently, I have this: > >success: function(label) { > > label.html("good").parent('div').removeClas

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
done it! if anyone interested here's what i did: here's the class rule which calls a function that iterate through the radiobuttons $.validator.addClassRules({ scuola: { required: function(){ checkIstruzione();

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
doh!! ok..i do that now but i can't get the right result of the iteration function (i see it's no longer a plugin problem!) Any suggestion though :) ?

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
doh!! ok..now i do that but i can't get the result of the iterate function (i see my question is no longer about the plugin!). Any suggestion :) ?

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread Jörn Zaefferer
You don't have any code at all that checks the state of the other radio buttons, you just check the button itself. You need to select a radio buttons, iterate and check if there is at least one selected, if not, the checked on is required. Jörn On Wed, Oct 22, 2008 at 9:59 AM, hcvitto <[EMAIL PRO

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
http://www.azero.it/test_val/form.php here's a test page with the problemtic block..i did some change and it works better now but still i couldn't manage to make it right. I'm sure it's my lack of js knowladge..

[jQuery] Re: validate plugin and CodeIgniter

2008-10-21 Thread Jörn Zaefferer
Can you provide a simple testpage where I can see that code running? Jörn On Tue, Oct 21, 2008 at 6:13 PM, hcvitto <[EMAIL PROTECTED]> wrote: > > h Jorn > thank for the quick reply..it was my mistake :(.. > but, if i'm not annoying, i got another issue which i solved with a > twik but was wonder

[jQuery] Re: validate plugin and CodeIgniter

2008-10-21 Thread hcvitto
h Jorn thank for the quick reply..it was my mistake :(.. but, if i'm not annoying, i got another issue which i solved with a twik but was wonder if there's a better solution.. i got 5 couples of radio button: The validation rule against them must be: - at least one radiobutton with valu

[jQuery] Re: validate plugin and CodeIgniter

2008-10-21 Thread Jörn Zaefferer
A testpage would help. Does CI use any javascript to handle the form submit? Its possible that CI submits the form via JavaScript, triggering the validation again. Not very likely though. Jörn On Tue, Oct 21, 2008 at 5:21 PM, hcvitto <[EMAIL PROTECTED]> wrote: > > hi > i'm giving a go at codeIgn

[jQuery] Re: Validate Plugin

2008-07-13 Thread [EMAIL PROTECTED]
Never Mind. I took the .next() out of this line. error.appendTo( element.parent().next() ); On Jul 12, 5:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi All, > > I just started working with the validate plug in and I am having a > interesting problem. I am validating input text tag t

[jQuery] Re: Validate plugin: RFC2822 compliant emails

2008-06-30 Thread Scott González
Using a regex for RFC 822 isn't a very good idea. To start off, it's an ARPA standard from 1982. RFC 2822 replaced it in 2001. But even just following that isn't good enough because of the reasons you've stated about UTF-8 and domain names. The RFC for IRI's (RFC 3987) wasn't released until 20

[jQuery] Re: Validate plugin: RFC2822 compliant emails

2008-06-28 Thread Bil Corry
Scott González wrote on 6/27/2008 6:51 AM: No problem. The interesting thing is that the more you comply with the RFC, the more likely you are to allow someone to accidentally enter an incorrect email address. Jan Goyvaerts does a great job of explaining the issues surrounding validating em

[jQuery] Re: Validate plugin: RFC2822 compliant emails

2008-06-27 Thread Scott González
No problem. The interesting thing is that the more you comply with the RFC, the more likely you are to allow someone to accidentally enter an incorrect email address. The webforms plugin addresses this by following the spec as closely as possible and just ensuring that the form of the address is

[jQuery] Re: Validate plugin: RFC2822 compliant emails

2008-06-26 Thread AstroIvan
Sounds great Scott. First my apologies, as it seems my post was a little pre-emptive. The specific case I got in a bug report was that + signs were not being allowed by the client validation. This is incorrect as I've double tested it after looking at your test cases, and it looks like you guys

[jQuery] Re: Validate plugin: RFC2822 compliant emails

2008-06-26 Thread Scott González
As Jörn has stated, we have intentionally gone against the RFC a bit to go for a more practical approach. The original regex was written to the spec (as much as possible). I seem to recall that while I was writing the regex I thought it was actually impossible to follow the spec because I had to

[jQuery] Re: Validate plugin: RFC2822 compliant emails

2008-06-25 Thread Jörn Zaefferer
Can you give me a concrete example of a false positive or false negative in the validation plugin? Those are what we test against: http://dev.jquery.com/view/trunk/plugins/validate/test/methods.js (scroll down to test("email"...) In addition, the validation implemented a mostly correct regex, wi

[jQuery] Re: Validate plugin - validate only PART of a form

2008-06-11 Thread Michael Price
Jörn Zaefferer wrote: Take a look at this multipart form, it uses the accordion and custom methods to split validation across parts: http://jquery.bassistance.de/validate/demo/multipart/ I'll check that out - thanks :) Regards, Michael Price

[jQuery] Re: Validate Plugin Exceptions

2008-06-10 Thread Matt Quackenbush
Jorn, All I can say is "thank you", and I feel like a complete moron. I had mistakenly read it as "1.2.6" in the document head, when in fact that particular application was using 1.2.1. Thank you very much for your keen eye. "Problem" fixed. Thanks again, Matt On Tue, Jun 10, 2008 at 4:51

[jQuery] Re: Validate Plugin Exceptions

2008-06-10 Thread Jörn Zaefferer
Well, your stack includes "jquery-1.2.1.pack". That indicated to me you've got the wrong version. Otherwise, please post a testpage. Jörn On Tue, Jun 10, 2008 at 8:32 PM, Matt Quackenbush <[EMAIL PROTECTED]> wrote: > Jorn, > > I am running jQuery-1.2.6.pack.js with this. I have a number of for

[jQuery] Re: Validate Plugin Exceptions

2008-06-10 Thread Matt Quackenbush
Jorn, I am running jQuery-1.2.6.pack.js with this. I have a number of forms running this exact configuration with no issues whatsoever. That's why I am pulling my hair out on this one. It makes no sense to me. Any other thoughts/ideas? Thanks, Matt On Tue, Jun 10, 2008 at 6:58 AM, Jörn Za

[jQuery] Re: Validate plugin - validate only PART of a form

2008-06-10 Thread Jörn Zaefferer
Take a look at this multipart form, it uses the accordion and custom methods to split validation across parts: http://jquery.bassistance.de/validate/demo/multipart/ Jörn On Tue, Jun 10, 2008 at 5:14 PM, Michael Price <[EMAIL PROTECTED]> wrote: > > Hi all, > About to use Jorn's validation plugin

[jQuery] Re: Validate Plugin Exceptions

2008-06-10 Thread Jörn Zaefferer
Please update to jQuery 1.2.6. Jörn On Tue, Jun 10, 2008 at 10:30 AM, Matt Quackenbush <[EMAIL PROTECTED]> wrote: > Hello, > > For some reason I am receiving the following two errors in Firebug when > attempting to load a form that makes use of the Validation plugin. I am > using this in a numb

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-22 Thread Dane
Sorry about that. Should be good now. ^Fingers Crossed^ On May 22, 7:53 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Can't apply the patch, see comment on ticket. > > Jörn > > On Wed, May 21, 2008 at 1:09 AM, Dane <[EMAIL PROTECTED]> wrote: > > > Ticket #2908 created and patch attached. Let

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-22 Thread Jörn Zaefferer
Can't apply the patch, see comment on ticket. Jörn On Wed, May 21, 2008 at 1:09 AM, Dane <[EMAIL PROTECTED]> wrote: > > Ticket #2908 created and patch attached. Let me know if I should > change anything. > > On May 19, 1:57 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> > wrote: >> Just use "messages"

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-20 Thread Dane
Ticket #2908 created and patch attached. Let me know if I should change anything. On May 19, 1:57 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Just use "messages" for embedding messages as metadata. The odds of > adding a method "messages" are extremely low, and once its released, > I'll upd

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-19 Thread Jörn Zaefferer
Just use "messages" for embedding messages as metadata. The odds of adding a method "messages" are extremely low, and once its released, I'll update the docs accordingly. Jörn On Fri, May 16, 2008 at 7:05 PM, Dane <[EMAIL PROTECTED]> wrote: > > -> "Avoiding the conflict between a method "message

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-16 Thread Dane
-> "Avoiding the conflict between a method "messages" and those actual messages should be easy enough. " Should we plan on supporting a simulatanious "message" method and custom messages in metadata? As stated, I'm still climbing the learning curve :). Before I implement this I just want to make

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-16 Thread Dane
Ah, agreed. I'll make these changes and send in a ticket. On May 15, 4:20 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > How about this? > > meta: default > class="{required:true,minlength:2,messages:{required:'Enter > this!',minlength:'Way to short'}}" > > meta: "validation" > class="{validat

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-15 Thread Jörn Zaefferer
How about this? meta: default class="{required:true,minlength:2,messages:{required:'Enter this!',minlength:'Way to short'}}" meta: "validation" class="{validation:{required:true,minlength:2,messages:{required:'Enter this!',minlength:'Way to short'}}}" No need to change the meta-option that way.

[jQuery] Re: Validate plugin doesn't work on type=file controls?

2008-05-15 Thread Gordon
I figured out why it was happening. I was using an accept attribute on the file inputs to specify the MIME type of files the input was meant to allow, as the w3c documentation at http://www.w3.org/TR/html401/interact/forms.html#adef-accept describes. When I added the jQuery validation on top it

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-15 Thread Dane
Ok I have a first cut done. elements can now have metadata like: Quick question though. Which do you prefer? 1)$("#Form").validate({meta:"rules", metaMessages:"messages"}); 2)$("#Form").validate({meta:{rules:"rules", messages:"messages"}}); I like 2, but it changes the existing API. How do yo

[jQuery] Re: Validate plugin again: Only submit on certain submit buttons

2008-05-15 Thread Gordon
Thanks On May 15, 3:19 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Now also documented > here:http://docs.jquery.com/Plugins/Validation#Skipping_validation_on_submit > > Jörn > > On Thu, May 15, 2008 at 4:14 PM, Jörn Zaefferer > > <[EMAIL PROTECTED]> wrote: > > Add a class="cancel" to your

[jQuery] Re: Validate plugin again: Only submit on certain submit buttons

2008-05-15 Thread Jörn Zaefferer
Now also documented here: http://docs.jquery.com/Plugins/Validation#Skipping_validation_on_submit Jörn On Thu, May 15, 2008 at 4:14 PM, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Add a class="cancel" to your cancel-button. > > Jörn > > > > On Thu, May 15, 2008 at 1:46 PM, Gordon <[EMAIL PROTE

[jQuery] Re: Validate plugin again: Only submit on certain submit buttons

2008-05-15 Thread Jörn Zaefferer
Add a class="cancel" to your cancel-button. Jörn On Thu, May 15, 2008 at 1:46 PM, Gordon <[EMAIL PROTECTED]> wrote: > > I have a form with two submit buttons. > > > > > On the server side I have a PHP script that ichecks if $_POST > ['cancel'] has a value. If it doesn't then it runs thro

[jQuery] Re: Validate plugin doesn't work on type=file controls?

2008-05-15 Thread Jörn Zaefferer
There are two file inputs in this demo: http://jquery.bassistance.de/validate/demo/errorcontainer-demo.html Validation works just fine. Maybe anything else you are missing? Testpage? Jörn On Thu, May 15, 2008 at 12:27 PM, Gordon <[EMAIL PROTECTED]> wrote: > > I'm trying to apply jquery.valida

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-14 Thread Dane
Thanks for the help on getting started. I'd already started wading through the source so you definitely saved me some time. I'm not totally comfortable with Jquery yet but I'm getting there :). I'll give this a go and see what happens. Should I just reply to this thread to contribute/ask questions

[jQuery] Re: Validate Plugin - Message customization with metadata

2008-05-14 Thread Jörn Zaefferer
It isn'T supported, yet. You could help getting it into the plugin by trying to implement it yourself, and contributing it back. To get started, take a look at the defaultMessage-method. Currently it looks for custom messages specified via options, then for the title attribute, then for default m

  1   2   >