[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: fixed it.

[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: $.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, appr

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

[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

[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] 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] 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] 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: Either a radio button must be checked, or something must be in the text box. If no radio button is checked and nothing is typed in the text box, I need an error message. If a radio

[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: and the following code making sure that only 3 can be chosen: $(document).ready(function() { $('#fQuestionnaire1').validate({ rules: { q

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