[jQuery] Validation Plugin + jNice

2009-11-13 Thread Samuurai
I'm having a strange problem with jNice and the validation plugin. Probably the easiest way to describe the error is by giving an example. I load the page with my form on it, then without typing anything, I click submit. The jQuery validation plugin puts errors around my fields saying This field

[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 joern.zaeffe...@googlemail.com wrote: Do you have a testpage? Jörn On Fri, Nov 13, 2009 at 4:40 PM, Samuurai djbe

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
Oh - Log in as jorn/jorn On Nov 13, 3:58 pm, Samuurai djbe...@gmail.com 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 joern.zaeffe...@googlemail.com wrote

[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 djbe...@gmail.com wrote: Oh - Log in as jorn/jorn On Nov 13, 3:58 pm, Samuurai djbe...@gmail.com wrote: Yeah.. www.racedaystaff.com-log in as jorn/jorn then click proceed to site then click

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
, Samuurai djbe...@gmail.com 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 joern.zaeffe...@googlemail.com wrote: Do you have a testpage? Jörn

[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
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 On Fri, Nov 13, 2009 at 6:17 PM, Samuurai

[jQuery] jQuery Validation - ajax check for email

2009-10-21 Thread Samuurai
Hi, This is my first attempt at using addMethod and it's always returning true, for some reason. This is placed outside of document.ready jQuery.validator.addMethod(checkemail, function(email) { var email = $('#email').val(); $.post(user/checkemail, { email : email },

[jQuery] Re: jQuery Validation - ajax check for email

2009-10-21 Thread Samuurai
/remote Jörn On Wed, Oct 21, 2009 at 2:12 PM, Samuurai djbe...@gmail.com wrote: Hi, This is my first attempt at using addMethod and it's always returning true, for some reason. This is placed outside of document.ready jQuery.validator.addMethod(checkemail, function(email

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
: 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 djbe...@gmail.com wrote: Hi, I have got some very rudimentary validation working with JQuery validation, however

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
I'm doing :) On Oct 1, 11:24 am, Samuurai djbe...@gmail.com wrote: 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

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
a for-attribute pointing to the associated input, otherwise the plugin can't update it later on. Jörn On Thu, Oct 1, 2009 at 5:27 PM, Samuurai djbe...@gmail.com wrote: I have just realised that you were the coder behind this - My apologies..I didn't realise the flexibility of errorPlacement

[jQuery] Form Validation

2009-09-30 Thread Samuurai
Hi, I have got some very rudimentary validation working with JQuery validation, however, by default, it creates some label tags with the error messages in them, right next to the input tags which have errors. How can I control where these error messages are displayed, as they're inside the same

[jQuery] Checkbox behaviour

2009-08-07 Thread Samuurai
Hi, This is my first little foray into JQuery, so far i'm impressed, having had very little JS experience, I was able to create the result I wanted very qucikly and easily! However, I'm having one little niggle... Here's my code: [code] $(document).ready(function(){

[jQuery] Re: Checkbox behaviour

2009-08-07 Thread Samuurai
() on load (ie. put it somewhere in $(document).ready(function(){}). Make it a seperate function so you can avoid copy/pasting the whole thing Jonathan Samuurai wrote: Hi, This is my first little foray into JQuery, so far i'm impressed, having had very little JS experience, I was able

[jQuery] Re: Checkbox behaviour

2009-08-07 Thread Samuurai
...@tnt.be wrote: You'll have to run the whole function block within $(#show_resolve).click() on load (ie. put it somewhere in $(document).ready(function(){}). Make it a seperate function so you can avoid copy/pasting the whole thing Jonathan Samuurai wrote: Hi, This is my first