[jQuery] Re: Validation Plugin + jNice

2009-11-13 Thread Samuurai
= 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ör

[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, Sa

[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 > >

[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 Zaef

[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

[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: jQuery Validation - ajax check for email

2009-10-21 Thread Samuurai
ttp://docs.jquery.com/Plugins/Validation/Methods/remote > > Jörn > > On Wed, Oct 21, 2009 at 2:12 PM, Samuurai wrote: > > > Hi, > > > This is my first attempt at using addMethod and it's always returning > > true, for some reason. > > > This is plac

[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: Form Validation

2009-10-01 Thread Samuurai
ds to have 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 wrote: > > > I have just realised that you were the coder behind this - > > > My apologies

[jQuery] Re: Form Validation

2009-10-01 Thread Samuurai
ldren()); But it didn't work basically I don't really know what I'm doing :) On Oct 1, 11:24 am, Samuurai 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: >

[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 wrote: > > > Hi, > > > I have got some very rudimentary validation working with JQu

[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] Re: Checkbox behaviour

2009-08-07 Thread Samuurai
amp; T NV)" 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 >

[jQuery] Re: Checkbox behaviour

2009-08-07 Thread Samuurai
;Jonathan Vanherpe (T & T NV)" 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

[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(){