[jQuery] validator.getLength is not a function

2007-06-20 Thread Oddish
I just upgraded the validation plugin to 1.0 final from beta 2 and now I get this on one of my forms: Error: jQuery.validator.getLength is not a function The line where the error occurs is the second of the three lines below: jQuery.validator.addMethod("validPhoneNr", function(value, element, p

[jQuery] Can a ThickBox appear over the top of my Flash content?

2007-06-08 Thread Oddish
Since the link in the thickbox Q&A is broken, could someone explain how I can make my thickboxes appear over the top of my flash content? Thanks in advance!

[jQuery] Re: Radio button validation

2007-05-28 Thread Oddish
Thanks for the response. I went with the first option and placed a custom error label manually in the HTML, and it works great. On May 25, 6:44 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > There still is that positioning problem with radio buttons and > checkboxes. Currently you have two far-f

[jQuery] Radio button validation

2007-05-25 Thread Oddish
I've got a bunch of radio buttons, all with the name "type" and all with different id's (type1, type2 etc.), and for some reason the validate plugin doesn't protest when I don't select a radio button, and I don't get any javascript errors either. Here's the code: $("#addForm").validate({

[jQuery] Re: Validate optional field

2007-05-14 Thread Oddish
Thanks a lot! :) On May 14, 3:48 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > >I'm trying to validate an optional field with the validation plugin, > >using a custom method. Here's the code: > > >rules: { > > birthdate: { validBirthdate:true } > >}, > >messages: { > >birthdate: { >

[jQuery] Validate optional field

2007-05-14 Thread Oddish
I'm trying to validate an optional field with the validation plugin, using a custom method. Here's the code: rules: { birthdate: { validBirthdate:true } }, messages: { birthdate: { validBirthdate: "Invalid birthdate" } } How do I make this field optional? I only want to check

[jQuery] Re: Variable in selector

2007-04-11 Thread Oddish
Don't worry about this. My original code does work, but there was a css rule the interfeared. Thanks for the help! On Apr 11, 12:12 pm, "Oddish" <[EMAIL PROTECTED]> wrote: > That unfortunately hides the whole page. It goes completely blank in > both FF and IE7. :-( >

[jQuery] Re: Variable in selector

2007-04-11 Thread Oddish
That unfortunately hides the whole page. It goes completely blank in both FF and IE7. :-( On Apr 11, 9:44 am, [EMAIL PROTECTED] wrote: > [BDY.TXT]try this: > > $(function() { > $('"#' + imgToShow + '"').hide(); > > }) > -Original Message- > From: andreas [mailto:[EMAIL PROTECTED]

[jQuery] Variable in selector

2007-04-11 Thread Oddish
I'm trying to hide an image, and I have the id of that image in a variable (imgToShow). Here's what I'm trying: $("#"+imgToShow).show(); This is not working. What am I doing wrong?

[jQuery] Re: Best practice for image source change

2007-04-10 Thread Oddish
Thanks a lot tobaco! That's much better! Thanks also to Will Kelly! On Apr 5, 1:36 pm, "tobaco" <[EMAIL PROTECTED]> wrote: > you could this also do it this way: > >

[jQuery] Best practice for image source change

2007-04-05 Thread Oddish
I've got a bunch of thumbnails, and when clicking these thumbnails, a larger image is supposed to change. I do this by changing the src attribute of the larger image, but I'm very new to jQuery so I was wondering about the best way to accomplish this. Right now, I've got this working code, but may