[jQuery] Validate: regex that returns true elsewhere returns false inside validator method

2009-10-09 Thread w1ntermut3
Either I'm having a really dim Friday, or something strange is going on. I'm trying to add a method to the Validator plugin, using the following regex: /^[a-z0-9-.,()'%$£*\s]+$/ So I've added this into the additional methods JS file: jQuery.validator.addMethod(lettersnumberandadvancedpunc,

[jQuery] Re: Validate: regex that returns true elsewhere returns false inside validator method

2009-10-09 Thread w1ntermut3
Ok, it was me. Well, it was the encoding issue as discussed in the comments on http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Updating code to: script type=text/javascript src=/js/jquery.validate-additional- methods.js charset=ISO-8859-1/script fixed it.

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread w1ntermut3
Thanks, although it doesn't appear to be working for me. script type=text/javascript $(document).ready(function(){ sHTML = ; sHTML += boxModel: + $.support.boxModel sHTML += br/cssFloat: + $.support.cssFloat sHTML += br/hrefNormalized: +

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread w1ntermut3
Thank you :) I'm trying to do a browser detection for client reasons :( They don't want to spend the money on coding IE6 fixes in, they're as... frustrated... with IE6 as we are, and have instructed us that any visitor reaching the site through it should be presented with a message of love,

[jQuery] $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-14 Thread w1ntermut3
No prizes for guessing it's an IE7/6 issue I'm trying to detect IE6, with: if (($.browser.msie == true) ($.browser.version 7)){ // fail } but the client has got a version of IE7 that's returning the following UA string: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; Mozilla/4.0

[jQuery] traversing with jQuery - complex selector causing brain pain

2008-11-06 Thread w1ntermut3
My nav bar consists of a single UL containing LI elements that each contain a single A. Well, most of them do. Some LI elements contain a further UL as well as the A: these submenu UL elements follow the same pattern of containing LI elements that each contain a single A. So far, so simple.

[jQuery] Re: Test that at least one input element has value

2008-10-30 Thread w1ntermut3
If I understand you right, I think you need the groups option: $(#myform).validate({ groups: { username: product1 product2 } }); AFAIK, that'll group error messages for your selected elements.

[jQuery] Validation: AJAX-based without remote?

2008-10-30 Thread w1ntermut3
Hi, I need to do some AJAX-based validation to check that the email address entered isn't in the database already, but only if the I am a new user radio button has been checked. I know that the Validation plugin has a remote rule, and rules that can validate one element based on the value of

[jQuery] animated image swap

2008-10-27 Thread w1ntermut3
I'm trying to animate a simple image swap but it's not quite working right. Details below, here's my code thus far: $('#zoom_control a').click(function(){ var oImg = $('.current_page').find('img'); oImg.animate({opacity: 0}, 1000, '',function(){

[jQuery] [Validation] required dependency issue

2008-10-16 Thread w1ntermut3
Hi, Trying to use the validation plugin (http://docs.jquery.com/Plugins/ Validation) to manage the following: input type=radio name=q8b id=q8b_1 value=1 / input type=radio name=q8b id=q8b_2 value=2 / input type=radio name=q8b id=q8b_3 value=3 / input type=text name=q8c id=q8c value=

[jQuery] [Validation plugin] attaching onclick validation to checkboxes before submit button is clicked?

2008-10-13 Thread w1ntermut3
Using the Validation plugin (http://docs.jquery.com/Plugins/ Validation/) I've got checkboxes like this: input type=checkbox name=q4 id=q4 value=1 / input type=checkbox name=q4 id=q4 value=2 / input type=checkbox name=q4 id=q4 value=3 / input type=checkbox name=q4 id=q4 value=4 / input

[jQuery] coda-slider: adding internal [prev] and [next] links

2008-09-30 Thread w1ntermut3
I'm using Nial Doherty's coda-slider plugin (http://plugins.jquery.com/ project/Coda-Slider), and trying to tweak it. I'm creating several instances of the slider on a page. I'd like to replicate the function of the 'previous' and 'next' buttons, but inside the content panels themselves. The