[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-08-26 Thread Ariel Flesler

You can either update Prototype/Scriptaculous to 1.8.x or try the
latest jQuery revision on the trunk. That should be 'patched'.

--
Ariel Flesler
http://flesler.blogspot.com

On Aug 25, 1:59 pm, mausch [EMAIL PROTECTED] wrote:
 Nevermind, it was executing prototype's each() (I was also including
 prototype on the same page) instead of jQuery's.
 Why this changed from 1.2.4 to 1.2.6 (everything else being equal)
 remains a mystery to me.

 On Aug 25, 1:12 pm, mausch [EMAIL PROTECTED] wrote:

  I'm having the same problem here. If I execute the following in a
  firebug console in one of our pages:

  jQuery('input').each(function() {console.log(this)})

  With 1.2.4 I get the individual elements:

  input type=image src=/content/images/buttons/logout_ico.gif
  input id=InputSearch type=text style=height: 12px; width: 70px;
  font-family: Arial,Helvetica,sans-serif; font-size: x-small;
  size=10 name=currentSearch
  input id=btnSearch type=image disabled=disabled src=/Content/
  images/header/btn_searchbox1.gif
  input type=submit style=visibility: collapse; display: none;
  ...

  With 1.2.6 I get one array containing all matching elements:

  [input, input#InputSearch, input#btnSearch, input,
  input#impressionsToAdd, input#checkAllHigh on, input#checkAllBold on,
  input#checkAllFeatured on, input#checkAllSponsored on,
  input#save1.save, input#chkHigh_1.chkStyle 1, input#chkBold_1.chkStyle
  1, input#chkFeatured_1.chkStyle 1, input#chkSponsored_1.chkStyle 1,
  input#chkHigh_2.chkStyle 2, input#chkBold_2.chkStyle 2,
  input#chkFeatured_2.chkStyle 2, input#chkSponsored_2.chkStyle 2,
  input#chkHigh_3.chkStyle 3, input#chkBold_3.chkStyle 3,
  input#chkFeatured_3.chkStyle 3, ...]

  Any ideas? Can anyone confirm that this is a bug or a new behavior?


[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-08-26 Thread mausch

Thanks Ariel!

On Aug 26, 3:43 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
 You can either update Prototype/Scriptaculous to 1.8.x or try the
 latest jQuery revision on the trunk. That should be 'patched'.

 --
 Ariel Fleslerhttp://flesler.blogspot.com

 On Aug 25, 1:59 pm, mausch [EMAIL PROTECTED] wrote:

  Nevermind, it was executing prototype's each() (I was also including
  prototype on the same page) instead of jQuery's.
  Why this changed from 1.2.4 to 1.2.6 (everything else being equal)
  remains a mystery to me.

  On Aug 25, 1:12 pm, mausch [EMAIL PROTECTED] wrote:

   I'm having the same problem here. If I execute the following in a
   firebug console in one of our pages:

   jQuery('input').each(function() {console.log(this)})

   With 1.2.4 I get the individual elements:

   input type=image src=/content/images/buttons/logout_ico.gif
   input id=InputSearch type=text style=height: 12px; width: 70px;
   font-family: Arial,Helvetica,sans-serif; font-size: x-small;
   size=10 name=currentSearch
   input id=btnSearch type=image disabled=disabled src=/Content/
   images/header/btn_searchbox1.gif
   input type=submit style=visibility: collapse; display: none;
   ...

   With 1.2.6 I get one array containing all matching elements:

   [input, input#InputSearch, input#btnSearch, input,
   input#impressionsToAdd, input#checkAllHigh on, input#checkAllBold on,
   input#checkAllFeatured on, input#checkAllSponsored on,
   input#save1.save, input#chkHigh_1.chkStyle 1, input#chkBold_1.chkStyle
   1, input#chkFeatured_1.chkStyle 1, input#chkSponsored_1.chkStyle 1,
   input#chkHigh_2.chkStyle 2, input#chkBold_2.chkStyle 2,
   input#chkFeatured_2.chkStyle 2, input#chkSponsored_2.chkStyle 2,
   input#chkHigh_3.chkStyle 3, input#chkBold_3.chkStyle 3,
   input#chkFeatured_3.chkStyle 3, ...]

   Any ideas? Can anyone confirm that this is a bug or a new behavior?


[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-08-25 Thread mausch

I'm having the same problem here. If I execute the following in a
firebug console in one of our pages:

jQuery('input').each(function() {console.log(this)})

With 1.2.4 I get the individual elements:

input type=image src=/content/images/buttons/logout_ico.gif
input id=InputSearch type=text style=height: 12px; width: 70px;
font-family: Arial,Helvetica,sans-serif; font-size: x-small;
size=10 name=currentSearch
input id=btnSearch type=image disabled=disabled src=/Content/
images/header/btn_searchbox1.gif
input type=submit style=visibility: collapse; display: none;
...

With 1.2.6 I get one array containing all matching elements:

[input, input#InputSearch, input#btnSearch, input,
input#impressionsToAdd, input#checkAllHigh on, input#checkAllBold on,
input#checkAllFeatured on, input#checkAllSponsored on,
input#save1.save, input#chkHigh_1.chkStyle 1, input#chkBold_1.chkStyle
1, input#chkFeatured_1.chkStyle 1, input#chkSponsored_1.chkStyle 1,
input#chkHigh_2.chkStyle 2, input#chkBold_2.chkStyle 2,
input#chkFeatured_2.chkStyle 2, input#chkSponsored_2.chkStyle 2,
input#chkHigh_3.chkStyle 3, input#chkBold_3.chkStyle 3,
input#chkFeatured_3.chkStyle 3, ...]

Any ideas? Can anyone confirm that this is a bug or a new behavior?


[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-08-25 Thread mausch

Nevermind, it was executing prototype's each() (I was also including
prototype on the same page) instead of jQuery's.
Why this changed from 1.2.4 to 1.2.6 (everything else being equal)
remains a mystery to me.

On Aug 25, 1:12 pm, mausch [EMAIL PROTECTED] wrote:
 I'm having the same problem here. If I execute the following in a
 firebug console in one of our pages:

 jQuery('input').each(function() {console.log(this)})

 With 1.2.4 I get the individual elements:

 input type=image src=/content/images/buttons/logout_ico.gif
 input id=InputSearch type=text style=height: 12px; width: 70px;
 font-family: Arial,Helvetica,sans-serif; font-size: x-small;
 size=10 name=currentSearch
 input id=btnSearch type=image disabled=disabled src=/Content/
 images/header/btn_searchbox1.gif
 input type=submit style=visibility: collapse; display: none;
 ...

 With 1.2.6 I get one array containing all matching elements:

 [input, input#InputSearch, input#btnSearch, input,
 input#impressionsToAdd, input#checkAllHigh on, input#checkAllBold on,
 input#checkAllFeatured on, input#checkAllSponsored on,
 input#save1.save, input#chkHigh_1.chkStyle 1, input#chkBold_1.chkStyle
 1, input#chkFeatured_1.chkStyle 1, input#chkSponsored_1.chkStyle 1,
 input#chkHigh_2.chkStyle 2, input#chkBold_2.chkStyle 2,
 input#chkFeatured_2.chkStyle 2, input#chkSponsored_2.chkStyle 2,
 input#chkHigh_3.chkStyle 3, input#chkBold_3.chkStyle 3,
 input#chkFeatured_3.chkStyle 3, ...]

 Any ideas? Can anyone confirm that this is a bug or a new behavior?


[jQuery] Re: possible bug in each()? moving from 1.2.3 to 1.2.6

2008-07-02 Thread Brian J. Fink

Is that the correct way to spell it? Maybe all lowercase would work.
(I don't know. I use $ myself.)

On Jul 2, 6:48 pm, darren [EMAIL PROTECTED] wrote:
 Hi

 Im trying to use 1.2.6, moving from 1.2.3.  I have a working function
 in 1.2.3 but it is not working with the updated jquery library, and
 I'm wondering if i have found a bug.

 The trouble call is this:

 jQuery('#apparatus .annotation').each( function(i){
 ...

 When stepping over this call, firebug returns an error of object not
 defined.

 As I mentioned, this code is working correctly with jQuery 1.2.3.
 Note also I'm using jQuery, not $ for all of my calls.  Also, im using
 jQuery.noConflict(). I have tried to used the uncompressed and packed
 versions, witht he same result.

 Any suggestions?