[jQuery] Picking an element from a set

2009-05-14 Thread Buzzterrier
Sorry, I am sure this is a simple question but I cannot figure it out. I have : foo bar baz bif I have a selector: $("div.test")[2].fadeOut(); This gives a console error: Error: $("div.test")[2].fadeOut is not a function >From Jquery in Action I thought the wrapped set was an array that I co

[jQuery] What does === equate to?

2007-08-01 Thread Buzzterrier
I am getting a exception when jquery is processing a successful ajax call on line 339 of the most recent release: if ( fn.apply( obj[i], args || [i, obj[i]] ) === false ) break; The error is that fn is void, and the onreadystatchange function, catches the exception and changes the status from su

[jQuery] Chaining methods

2007-05-02 Thread Buzzterrier
I made a plugin called toggleText. I want to chain this to a jquery object and toggle the text. I also want to add a click event to the jquery object. If I just use the toggleText plugin, it works. But if I also add the click handler, I get the following error: Error: $("#toggleError").toggleText

[jQuery] Re: Multiple form submit issue

2007-04-25 Thread Buzzterrier
Thx Mike! I was on 1.0.3 v.95 looks like .96 or .97 fixed it. On Apr 25, 11:22 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Are you using the latest version of the form plugin? > > http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?forma... > > Mike > > > So if I have form a, b, c

[jQuery] Re: Multiple form submit issue

2007-04-25 Thread Buzzterrier
I thought that both of these methods were working, but there is a snag. The first form that gets submitted persists for all subsequent submits. So if I have form a, b, c, and I click form b's submit button it works. But if I then click on form a's submit button, it submits form b. Any ideas?

[jQuery] Re: Multiple form submit issue

2007-04-19 Thread Buzzterrier
prep > it with ajaxForm and then use the submit event. > > $('form.photoForm').ajaxForm(options); > > ... > > $('input.btnPhotos').click(function(){ > $(this.form).submit(); > return false; > > }); > > That should work. > > M

[jQuery] Re: Multiple form submit issue

2007-04-18 Thread Buzzterrier
Some designers spec links instead of buttons. I could strip down a button using css; but using an is easier. On Apr 18, 5:12 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > Why would you need to use anchors? > > On 4/18/07, Buzzterrier <[EMAIL PROTECTED]> wr

[jQuery] Re: Multiple form submit issue

2007-04-18 Thread Buzzterrier
t; > Delete: > > //create a click even and add submit behavior to all inputs that has > the btnPhotos class elements > $("input.btnPhotos").click( >function(){ >this.form.submit(); > > }); > > because it's no longer necessary

[jQuery] Re: Multiple form submit issue

2007-04-18 Thread Buzzterrier
$('#myForm1').submit(); }); ... Submit On Apr 18, 3:49 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Hi Buzz, > > Try replacing this line: > > this.form.submit(); > > with this: > > $(this.form).ajaxSubmit(); > > Mike > > On 4/18/07,

[jQuery] Multiple form submit issue

2007-04-18 Thread Buzzterrier
Hello, I am using the forms plugin, and have a page that dynamically creates multiple forms for editing photos. Each form has a button, that has a click event is added to it, which submits the form. I am having problems getting the click event to submit the form so that the ajaxSubmit() fires. Us

[jQuery] Re: Getting option text from select

2007-04-09 Thread Buzzterrier
me question about 5 months ago. I can't > recall what project it was for, but I know it worked. > > andy > > -Original Message- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Buzzterrier > Sent: Monday, April 09, 2007 1:20 PM >

[jQuery] Getting option text from select

2007-04-09 Thread Buzzterrier
Is there a way to get the selected option's text from a select-one control? The form plugin returns the value, but I cannot seem to find a way to get the text.

[jQuery] Re: Getting all labels

2007-04-06 Thread Buzzterrier
l 06, 2007 2:27 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Getting all labels > > Maybe > > Var myArr = []; > $('label').each( > myArr.push($(this).attr('for')); > ); > > -Original Message- > From: jquery-e

[jQuery] Getting all labels

2007-04-06 Thread Buzzterrier
I want to get all labels in a form, and then access their "for" attribute to link it to the field. I thought that $("label") would give me an array of all label elements that I could loop through and get the "for" value. But this does not work and I know I am missing something fundamental to Jque

[jQuery] Re: jquery form plugin

2007-04-06 Thread Buzzterrier
Hi Mike, Still new to all of this, but I used this: $('#myAnchor').click(function() { ('#myForm').submit(); }); With the thought that the anchor would now fire the form's submit event, which should be no different than a submit button. This seems to work fine, but I am not an expert. On Fe

[jQuery] Re: Error with response after form submit

2007-04-05 Thread Buzzterrier
plies to a text or html > response (dataType == null). If the dataType option is set > (xml/script/json) then there is nothing to load in the target (and > thus fewer hoops to jump through to manage the nested scripts). > > Mike > > On 4/4/07, Buzzterrier <[EMAIL PROTECTED

[jQuery] Error with response after form submit

2007-04-04 Thread Buzzterrier
I am new to jquery and am trying to get the form plugin to work correctly. The success callback is not getting called, and I am getting the following error: jQuery(options.target).attr("innerHTML", data).evalScripts is not a function I am at a complete loss (I must say that jquery is far harder