[jQuery] Re: Form Element Collection

2007-06-18 Thread Dan G. Switzer, II
>This works on your demo page. (Using FF and Firebug command line of >course.) > >jQuery('[EMAIL PROTECTED]"text"]').setValue('1234') > >but this doesn't work. > >jQuery('[EMAIL PROTECTED]"text"]').setValue(1234) > >The solution is to make sure the type is string before doing a split. >(Of course

[jQuery] Re: Form Element Collection

2007-06-18 Thread John Farrar
Dan, Will that be added to the core build you have... or should I create another version local to prevent upgrades from creating bugs? John Dan G. Switzer, II wrote: > John, > > >> Found a possible bug. >> >> This works on your demo page. (Using FF and Firebug command line of >> course.) >>

[jQuery] Re: Form Element Collection

2007-06-18 Thread Dan G. Switzer, II
John, >Would it be a good idea to have the setter/getter look at the field type >and if it were an array based field to call the "fieldArray" function >directly? That way everything could run off a common single function. I had a public discussion about this on the list a while back. My original

[jQuery] Re: Form Element Collection

2007-06-18 Thread Dan G. Switzer, II
John, >Found a possible bug. > >This works on your demo page. (Using FF and Firebug command line of >course.) > >jQuery('[EMAIL PROTECTED]"text"]').setValue('1234') > >but this doesn't work. > >jQuery('[EMAIL PROTECTED]"text"]').setValue(1234) Yeah, it currently needs a string. You could probabl

[jQuery] Re: Form Element Collection

2007-06-18 Thread John Farrar
Dan, Would it be a good idea to have the setter/getter look at the field type and if it were an array based field to call the "fieldArray" function directly? That way everything could run off a common single function. John Farrar

[jQuery] Re: Form Element Collection

2007-06-18 Thread John Farrar
Found a possible bug. This works on your demo page. (Using FF and Firebug command line of course.) jQuery('[EMAIL PROTECTED]"text"]').setValue('1234') but this doesn't work. jQuery('[EMAIL PROTECTED]"text"]').setValue(1234) The solution is to make sure the type is string before doing a split.

[jQuery] Re: Form Element Collection

2007-06-18 Thread Dan G. Switzer, II
Hmmm... I just ran the test in my install of IE7 and didn't get any kind of alerts. -Dan _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Farrar Sent: Monday, June 18, 2007 9:49 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Form El

[jQuery] Re: Form Element Collection

2007-06-18 Thread John Farrar
Looks interesting Dan. Note: IE7 is complaining about scripted windows on your set functions. I let it run the script by you might want to know that as far as how you or others implement this technology. It doesn't appear to be an issue with your plug-in but rather the implementation. John Far

[jQuery] Re: Form Element Collection

2007-06-18 Thread Dan G. Switzer, II
John, >Does anyone have a way to pull individual form elements via a common >request simular to how they use $F() in prototypt? I would like to be >able to set/get any form element value via this scope using the >element ID. (Currently select boxes don't work the same as an input >element to my p

[jQuery] Re: Form Element Collection

2007-06-18 Thread Dan G. Switzer, II
>The form plugin has a method called fieldValue which is a getter and >is comparable to $F. Currently the plugin has no complementary setter >method. There's always my getter/setter functions: http://www.pengoworks.com/workshop/jquery/field.plugin.htm -Dan

[jQuery] Re: Form Element Collection

2007-06-16 Thread Ⓙⓐⓚⓔ
I haven't a clue what $F does, but unserialize is the opposite of serialize jQuery.fn.unserialize = function(search){ var items = search.split('&'); for (var i = 0; i < items.length; i++) { var parts = items[i].split(/=/); this.filter('[EMAIL PROTECTED]'+ parts

[jQuery] Re: Form Element Collection

2007-06-16 Thread Mike Alsup
John, The form plugin has a method called fieldValue which is a getter and is comparable to $F. Currently the plugin has no complementary setter method. Mike On 6/16/07, John Farrar <[EMAIL PROTECTED]> wrote: Does anyone have a way to pull individual form elements via a common request simu