[jQuery] Re: Form validation

2009-10-01 Thread James
I've replied to your other thread: http://groups.google.com/group/jquery-en/browse_thread/thread/80fbb4ae7b9d7c88 On Oct 1, 4:38 pm, "Dave Maharaj :: WidePixels.com" wrote: > I cant get the validation in my form to work. Using malsup to sumbit and > trying to add validate.js plugin but it wont w

[jQuery] Re: Form Validation errorplacement

2009-10-01 Thread slimshady
i figured out my crazy error message problem, my style had a float left on labels so even though my span tag was after the input box it would always get thrown left.

[jQuery] Re: Form Validation errorplacement

2009-10-01 Thread slimshady
I'm doing appendTo and it keeps putting the error message between the label and input box? any ideas what i'm missing please? it should go in the #warnTitle span tag to the right of the input box errorPlacement: function(error, element) { if (element.attr("id") == "title") {

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
I didn't realise it needed the 'for' attribute. I just finished updating my CSS to allow me to use the default label, so that's one less step I need now. I've just found a useful jquery plugin called unwrap.. hopefully it makes removing the wrapping div easier. Thanks Jorn B On Oct 1, 4:44 pm,

[jQuery] Re: Form Validation

2009-10-01 Thread Jörn Zaefferer
Take a look at some of the demos, eg. the Remember The Milk demo: http://jquery.bassistance.de/validate/demo/milk/ You can customize the error further with the errorElement and errorClass options. The resulting element needs to have a for-attribute pointing to the associated input, otherwise the

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
I have just realised that you were the coder behind this - My apologies..I didn't realise the flexibility of errorPlacement. I got it working to a certain degree.. here's my code: ,errorPlacement: function(error,element){ $('[for='+element.attr("name")+'

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
Thanks Jorn I'm looking at that, however I think I've devised another method. I need this code to be run on each offending field: $('[for=name]').parents('.grid-26') // for=name is the selctor for the label. .prepend('Please write your real name') .wrapInn

[jQuery] Re: Form Validation

2009-10-01 Thread Jörn Zaefferer
Take a look at the errorPlacement option, documented here: http://docs.jquery.com/Plugins/Validation/validate#toptions Jörn On Thu, Oct 1, 2009 at 12:53 AM, Samuurai wrote: > > Hi, > > I have got some very rudimentary validation working with JQuery > validation, however, by default, it creates

[jQuery] Re: Form Validation

2009-08-04 Thread Ratheesh
any 1 for help.? On Aug 3, 4:30 pm, Ratheesh wrote: > Hi, > It is specified in the documentation as > > "After submitting an invalid form, the first invalid element is > focused, allowing the user to correct the field. If another invalid > field, that wasn't the first one, was focuse

[jQuery] Re: Form Validation

2009-08-03 Thread Ratheesh
Hi, It is specified in the documentation as "After submitting an invalid form, the first invalid element is focused, allowing the user to correct the field. If another invalid field, that wasn't the first one, was focused before submit, that field is focused instead, allowing the user start at th

[jQuery] Re: Form Validation

2009-08-03 Thread Ratheesh
Hi, Usually when validation error occurs, the focus will go to the top most control which is in error. But for me the page stay as it is. it is not scrolling up to display the first control which is in error. Thanks On Aug 1, 6:16 am, G Tupman wrote: > Please elaborate? need some more info > >

[jQuery] Re: Form Validation

2009-08-01 Thread G Tupman
Please elaborate? need some more info On Fri, Jul 31, 2009 at 9:38 PM, Ratheesh wrote: > > Hi, > In my jquery validattion, the control which is invalid doesnt get > focus.. > Do you guys know what the reason is..? > > Thanks in advance > Ratheesh >

[jQuery] Re: Form Validation Plugin: customize input validation

2009-06-22 Thread Loony2nz
OICok. i'm not really good with regular expressions (hell, i'm absolutely horrible at it), but I'll give it a shot. On Jun 22, 1:15 am, Jörn Zaefferer wrote: > You can write a custom > method:http://docs.jquery.com/Plugins/Validation/Validator/addMethod > > Jörn > > On Mon, Jun 22, 2009 at

[jQuery] Re: Form Validation Plugin: customize input validation

2009-06-22 Thread Jörn Zaefferer
You can write a custom method: http://docs.jquery.com/Plugins/Validation/Validator/addMethod Jörn On Mon, Jun 22, 2009 at 7:21 AM, Loony2nz wrote: > > This is in regards to Jörn Zaefferer's plug in. > > How do you customize input validation so that I can remove foul > language? > > So that first

[jQuery] Re: Form validation - Add "http://" to text field if user forgot it

2009-06-03 Thread iroy...@googlemail.com
make sure to adjust the name attribute to your markup. On 3 Jun., 11:49, P wrote: > Thanks for your reply but unfortenately this doesnt work... > > On 28 Maj, 14:59, Jörn Zaefferer > wrote: > > > Try this: > > > $("input[name^=link]").blur(function() { > >   if (!/^http:\/\//.test(this.value) {

[jQuery] Re: Form validation - Add "http://" to text field if user forgot it

2009-06-03 Thread P
Thanks for your reply but unfortenately this doesnt work... On 28 Maj, 14:59, Jörn Zaefferer wrote: > Try this: > > $("input[name^=link]").blur(function() { >   if (!/^http:\/\//.test(this.value) { >     this.value = "http://"; + this.value; >   } > > }); > > Jörn > > > > On Thu, May 28, 2009 at

[jQuery] Re: Form validation - Add "http://" to text field if user forgot it

2009-05-28 Thread Jörn Zaefferer
Try this: $("input[name^=link]").blur(function() { if (!/^http:\/\//.test(this.value) { this.value = "http://"; + this.value; } }); Jörn On Thu, May 28, 2009 at 2:19 PM, P wrote: > > In my form I have a couple of text fields into which the user enters > links. > > > > > > Now I want

[jQuery] Re: Form Validation - upload file width

2009-05-12 Thread Jörn Zaefferer
Nope, that isn't possible afaik with JavaScript. Jörn On Tue, May 12, 2009 at 10:10 AM, Albert Kidd wrote: > > Hi, > > I would like to use jquery to validate on the server side to make sure > the uploaded image is 400px by 300px. > > Is this possible. > > AK >

[jQuery] Re: Form validation plugin

2009-04-17 Thread Mark (Germany)
i have major trouble to get the form validation plugin from Jörg to run it seems like it cannot deal with forms coming from a framework like CAKEPHP the fields are build the following by cake: well, now this plugin seems to ignore the id tags and use the name tag instead but it has trouble wit

[jQuery] Re: Form validation plugin

2009-04-17 Thread Rick
I bet you're just missing a comma or something somewhere.. On Apr 17, 1:11 pm, koolkat wrote: > When I tried it on 1.3.2, the messages displayed briefly but then the > form submitted. Is there some other change I need to make? Thanks. > > On Apr 15, 11:59 pm, Jörn Zaefferer > wrote: > > > The c

[jQuery] Re: Form validation plugin

2009-04-17 Thread koolkat
When I tried it on 1.3.2, the messages displayed briefly but then the form submitted. Is there some other change I need to make? Thanks. On Apr 15, 11:59 pm, Jörn Zaefferer wrote: > The current validation plugin works fine with both 1.2.6 and 1.3.2. > > Jörn > > On Thu, Apr 16, 2009 at 1:48 AM,k

[jQuery] Re: Form validation plugin

2009-04-15 Thread Jörn Zaefferer
The current validation plugin works fine with both 1.2.6 and 1.3.2. Jörn On Thu, Apr 16, 2009 at 1:48 AM, koolkat wrote: > > I have been using the form validation plugin with jquery 1.2.6. I > would like to use the new jquery version 1.3.2 but was wondering if > there is a replacement validatio

[jQuery] Re: Form validation help

2009-04-07 Thread Algirdas
As I see, you have set minlength: 5 for ZIP. You are doing everything right.

[jQuery] Re: Form Validation

2009-02-28 Thread ml2009
Hi Gelegrodan - Thank you for your response. I'm trying the jquery validation plugin and also using post http://groups.google.com/group/jquery-en/browse_thread/thread/6411a46d271c1ce4# as a reference, but I still can't make it work. On Feb 27, 5:34 pm, Gelegrodan wrote: > Use the jquery val

[jQuery] Re: Form Validation

2009-02-27 Thread Gelegrodan
Use the jquery validation plugin! http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Feb 27, 9:27 pm, ml2009 wrote: > I have just started using jQuery and wonder if you could help me > please. > > I am working on a form which contains a field to enter multi-email > addresses.  How

[jQuery] Re: Form Validation

2009-01-28 Thread issya
Still have not got this solved. If anyone could help that would be great, thanks. On Jan 25, 2:22 pm, Jörn Zaefferer wrote: > Try to move the code in your own submit handler to the submitHandler-callback: > >  $(document).ready(function() { >        $.validator.addMethod("phone", function(ph, el

[jQuery] Re: Form Validation

2009-01-26 Thread issya
I just tested this code on IE 6/7 and it does not work. I am using a thickbox ajax call to load this form into a lightbox. The forms loads just fine. If you don't fill anything out and submit the form, it will let it go through. It also seems to refresh the entire page which it shouldn't. Everythi

[jQuery] Re: Form Validation

2009-01-25 Thread issya
Thank you, that worked like a charm. On Jan 25, 2:22 pm, Jörn Zaefferer wrote: > Try to move the code in your own submit handler to the submitHandler-callback: > >  $(document).ready(function() { >        $.validator.addMethod("phone", function(ph, element) { >        if (ph == null) { >        

[jQuery] Re: Form Validation

2009-01-25 Thread Jörn Zaefferer
Try to move the code in your own submit handler to the submitHandler-callback: $(document).ready(function() { $.validator.addMethod("phone", function(ph, element) { if (ph == null) { return false; } var stripped = ph.replace(/[\s()+-]|ext\.?/gi, ""); //

[jQuery] Re: Form validation, not typical name of input.

2009-01-12 Thread jQuery Lover
You might find this useful (just as a note for the future) http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F - Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Jan 12, 2009 at 6:40 PM, grassoal

[jQuery] Re: Form validation, not typical name of input.

2009-01-12 Thread grassoalvaro
Nevermind, it's working, problem was in other place. On 12 Sty, 14:19, grassoalvaro wrote: > Hi, > > i have problem with validation for my form. For example: > > > > > > $('#valid').validation({ > rules: { > 'data[Order][login]': 'required', > > } > }); > > The validation method above dosn't

[jQuery] Re: form/validation plugin questions

2008-10-11 Thread Jörn Zaefferer
Take a look at the available options: http://docs.jquery.com/Plugins/Validation/validate In this case, showErrors, errorPlacement, errorContainer and errorLabelContainer should be interesting. You can use the remote-method to do serverside validation: http://docs.jquery.com/Plugins/Validation/Meth

[jQuery] Re: Form Validation Plugin

2007-05-21 Thread Mandy Singh
I have nailed down the issue, but I will open a separate thread to track that as it's a bigger issue. Stay Tune..but please reply. On 5/21/07, Mandy Singh <[EMAIL PROTECTED]> wrote: Anyone? The FF 2.0.3 is becoming a big issue for me now. On 5/21/07, Mandy Singh <[EMAIL PROTECTED]> wrote:

[jQuery] Re: Form Validation Plugin

2007-05-21 Thread Mandy Singh
Anyone? The FF 2.0.3 is becoming a big issue for me now. On 5/21/07, Mandy Singh <[EMAIL PROTECTED]> wrote: Jon, Karl - I am facing a strange issue today. After pushing to a production environment only for FF 2.0.0.3, the validate plugin is not working. It works fine in IE 6 & 7. It works

[jQuery] Re: Form Validation Plugin

2007-05-21 Thread Mandy Singh
Jon, Karl - I am facing a strange issue today. After pushing to a production environment only for FF 2.0.0.3, the validate plugin is not working. It works fine in IE 6 & 7. It works fine locally as well. I had put the validate code inside $(document).ready but seems like there is a problem wi

[jQuery] Re: Form Validation Plugin

2007-05-17 Thread Jörn Zaefferer
Karl Swedberg wrote: BTW, would anyone be interested in a short write up on this or the info on the plugin page is fine for everyone to understand? As I had some difficulties in catching up with it (coming from the prototype world), I thought I'll whip something up real fast. Thoughts? The

[jQuery] Re: Form Validation Plugin

2007-05-16 Thread Karl Swedberg
On May 16, 2007, at 8:11 AM, Dan G. Switzer, II wrote: Mandy, BTW, would anyone be interested in a short write up on this or the info on the plugin page is fine for everyone to understand? As I had some difficulties in catching up with it (coming from the prototype world), I thought I'll wh

[jQuery] Re: Form Validation Plugin

2007-05-16 Thread Dan G. Switzer, II
Mandy, >BTW, would anyone be interested in a short write up on this or the info on >the plugin page is fine for everyone to understand? > >As I had some difficulties in catching up with it (coming from the >prototype world), I thought I'll whip something up real fast. > >Thoughts? The more infor

[jQuery] Re: Form Validation Plugin

2007-05-16 Thread Mandy Singh
s soon as I change the field name to introCurrentFirstName > instead of > > intro-currentFirstName it starts working. > > > > Any ideas? > > > > > > On 5/16/07, Dan G. Switzer, II < [EMAIL PROTECTED]> wrote: > > > > > > > > > > >

[jQuery] Re: Form Validation Plugin

2007-05-16 Thread Mandy Singh
t gives me an error saying missing ":" > > But as soon as I change the field name to introCurrentFirstName instead of > intro-currentFirstName it starts working. > > Any ideas? > > > On 5/16/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: > > > > >

[jQuery] Re: Form Validation Plugin

2007-05-16 Thread Karl Rudd
; > > > Exactly! > > > > -Dan > > > > > ____________ > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mandy Singh > Sent: Tuesday, May 15, 2007 2:06 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re

[jQuery] Re: Form Validation Plugin

2007-05-16 Thread Mandy Singh
[mailto:[EMAIL PROTECTED] *On Behalf Of *Mandy Singh *Sent:* Tuesday, May 15, 2007 2:06 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: Form Validation Plugin Oh! Didn't know that. Thanks for pointing that out Dan (I am new to jquery had been using prototype till now). So, just the pac

[jQuery] Re: Form Validation Plugin

2007-05-15 Thread Dan G. Switzer, II
Exactly! -Dan _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mandy Singh Sent: Tuesday, May 15, 2007 2:06 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Form Validation Plugin Oh! Didn't know that. Thanks for pointing that out Dan (I a

[jQuery] Re: Form Validation Plugin

2007-05-15 Thread Mandy Singh
Oh! Didn't know that. Thanks for pointing that out Dan (I am new to jquery had been using prototype till now). So, just the packed version of the file is good enough? And using that I can define the rules such as - $("#myform").validate({ event: "keyup" rules: { firstnam

[jQuery] Re: Form Validation Plugin

2007-05-15 Thread Dan G. Switzer, II
Mandy, >I had a look at that before I posted. That does what I want but for simple >validations I can't include 40-50 KB of code (cmforms, meta.js, >jquery.validate)...thats an overkill when I just want a required:true >check. > >Any other? The only thing that is required is jquery.validate.js.

[jQuery] Re: Form Validation Plugin

2007-05-15 Thread Mandy Singh
Luc, I had a look at that before I posted. That does what I want but for simple validations I can't include 40-50 KB of code (cmforms, meta.js, jquery.validate)...thats an overkill when I just want a required:true check. Any other? Thanks, Mandy. On 5/15/07, Luc Pestille <[EMAIL PROTECTED]> wro

[jQuery] Re: Form Validation Plugin

2007-05-15 Thread Luc Pestille
Jörn Zaefferer's Validation plugin ( http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) will do what you want. It does huge stuff too, but also very simple validation, just add a class "{required:true}" to inputs, a