[Proto-Scripty] Re: Chrome, Object and each()

2008-11-15 Thread laurin1

Is their bug tracking publicly available? We really like the product
and are considering using this in our Intranet environment, but cannot
move forward without this key feature implemented.

On Nov 15, 2:54 am, "Alex Mcauley" <[EMAIL PROTECTED]>
wrote:
> its a known bug in Chrome .. i reported the issue a few weeks ago ...
>
> It also happens when watching multiple classnames and invoking them
>
> Something like
>
> $$('.someClass').invoke('observe','click',function(e) {
>     alert('Clicked me');
>
> });
>
> 1 
> 2 
> 3 
> 4 
> 5 
>
> will only observe the last element with classname=someClass
>
> Regards
> Alex
>
> - Original Message -
> From: "laurin1" <[EMAIL PROTECTED]>
> To: "Prototype & script.aculo.us" 
> Sent: Saturday, November 15, 2008 7:14 AM
> Subject: [Proto-Scripty] Re: Chrome, Object and each()
>
> > Like I said, this code works just fine in IE, but in Chrome, it does
> > not work.
>
> >>        $aEle = $('TicketOptions').getElementsByClassName('LoadChecks');
> >>        $aEle.each(function($s){
> >>                if($s != $sEle) $s.checked = false;
> >>        });
>
> > No error in the browser, but the JS debugger stops with:
>
> > uncaught exception TypeError: Object # has no method 'each'
>
> > This is practically right out of the documentation for Prototype. I
> > use this all the time in IE. I don't understand what the problem is.
> > It seems that Chrome can retrieve the array of objects (elements), but
> > it will not apply the prototyped methods (any of them, each(), inspect
> > ()), to these.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-15 Thread Alex Mcauley

its a known bug in Chrome .. i reported the issue a few weeks ago ...

It also happens when watching multiple classnames and invoking them

Something like

$$('.someClass').invoke('observe','click',function(e) {
alert('Clicked me');

});

1 
2 
3 
4 
5 


will only observe the last element with classname=someClass


Regards
Alex


- Original Message - 
From: "laurin1" <[EMAIL PROTECTED]>
To: "Prototype & script.aculo.us" 
Sent: Saturday, November 15, 2008 7:14 AM
Subject: [Proto-Scripty] Re: Chrome, Object and each()


>
> Like I said, this code works just fine in IE, but in Chrome, it does
> not work.
>
>>$aEle = $('TicketOptions').getElementsByClassName('LoadChecks');
>>$aEle.each(function($s){
>>if($s != $sEle) $s.checked = false;
>>});
>
>
> No error in the browser, but the JS debugger stops with:
>
> uncaught exception TypeError: Object # has no method 'each'
>
>
> This is practically right out of the documentation for Prototype. I
> use this all the time in IE. I don't understand what the problem is.
> It seems that Chrome can retrieve the array of objects (elements), but
> it will not apply the prototyped methods (any of them, each(), inspect
> ()), to these.
> >
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1

Like I said, this code works just fine in IE, but in Chrome, it does
not work.

>$aEle = $('TicketOptions').getElementsByClassName('LoadChecks');
>$aEle.each(function($s){
>if($s != $sEle) $s.checked = false;
>});


No error in the browser, but the JS debugger stops with:

uncaught exception TypeError: Object # has no method 'each'


This is practically right out of the documentation for Prototype. I
use this all the time in IE. I don't understand what the problem is.
It seems that Chrome can retrieve the array of objects (elements), but
it will not apply the prototyped methods (any of them, each(), inspect
()), to these.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Ken Snyder
See my comments below. - Ken Snyder

On Fri, Nov 14, 2008 at 2:17 PM, laurin1 <[EMAIL PROTECTED]>wrote:

>
> I'm sorry. My brain is fried, it works on arrays with simple values,
> but not arrays with Objects IN them. Mispoke.
>
> For instance, in IE and in Chrome, this works fine:
>
>$a = new Object();
>
>$a['testme1'] = 'tested1';
>$a['testme2'] = 'tested2';
>$a['testme3'] = 'tested3';
>
>$a.each(function($s){
>
>alert($s);
>
>});
>
Using Prototype convention:
a = $H();

a.set('testme1', 'tested1');
a.set('testme2', 'tested2');
a.set('testme3', 'tested3');

a.each(function(pair){
  alert(pair.key + ': ' + pair.value);
});



>
> In IE, this works fine, but does not work in Chrome:
>
>
>$aEle = $('TicketOptions').getElementsByClassName('LoadChecks');
>
>$aEle.each(function($s){
>
>if($s != $sEle) $s.checked = false;
>
>});
>
Using Prototype convention:

aEle = $('TicketOptions').select('.LoadChecks');
aEle.each(function(s) {
  if (s != sEle) s.checked = false;
});

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread kangax

On Nov 14, 4:17 pm, laurin1 <[EMAIL PROTECTED]> wrote:
> I'm sorry. My brain is fried, it works on arrays with simple values,
> but not arrays with Objects IN them. Mispoke.
>
> For instance, in IE and in Chrome, this works fine:
>
> $a = new Object();
>
> $a['testme1'] = 'tested1';
> $a['testme2'] = 'tested2';
> $a['testme3'] = 'tested3';
>
> $a.each(function($s){

This should throw a TypeError : ) as there's no `each` on
`Object.prototype`

>
> alert($s);
>
> });
>
> In IE, this works fine, but does not work in Chrome:

How *exactly* does it not work? Errors, silently dies or does
something else?

>
> $aEle = $('TicketOptions').getElementsByClassName('LoadChecks');
>
> $aEle.each(function($s){
>
> if($s != $sEle) $s.checked = false;
>
> });

--
kangax
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1

I'm sorry. My brain is fried, it works on arrays with simple values,
but not arrays with Objects IN them. Mispoke.

For instance, in IE and in Chrome, this works fine:

$a = new Object();

$a['testme1'] = 'tested1';
$a['testme2'] = 'tested2';
$a['testme3'] = 'tested3';

$a.each(function($s){

alert($s);

});

In IE, this works fine, but does not work in Chrome:


$aEle = $('TicketOptions').getElementsByClassName('LoadChecks');

$aEle.each(function($s){

if($s != $sEle) $s.checked = false;

});

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Alex Mcauley

thats my point  each is an array ittrerator no ?

http://www.prototypejs.org/api/array/each






- Original Message - 
From: "laurin1" <[EMAIL PROTECTED]>
To: "Prototype & script.aculo.us" 
Sent: Friday, November 14, 2008 8:56 PM
Subject: [Proto-Scripty] Re: Chrome, Object and each()



It works fine on arrays, if that is what you are asking.

On Nov 14, 2:39 pm, "Alex Mcauley" <[EMAIL PROTECTED]>
wrote:
> each does an array itterator no ?
>
>
>
> - Original Message -
> From: "laurin1" <[EMAIL PROTECTED]>
> To: "Prototype & script.aculo.us" 
> 
> Sent: Friday, November 14, 2008 8:29 PM
> Subject: [Proto-Scripty] Chrome, Object and each()
>
> > Apparently, this does not work? I get this error message when I try
> > it:
>
> > uncaught exception TypeError: Object # has no method 'each'- 
> > Hide quoted text -
>
> - Show quoted text -



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1

It works fine on arrays, if that is what you are asking.

On Nov 14, 2:39 pm, "Alex Mcauley" <[EMAIL PROTECTED]>
wrote:
> each does an array itterator no ?
>
>
>
> - Original Message -
> From: "laurin1" <[EMAIL PROTECTED]>
> To: "Prototype & script.aculo.us" 
> Sent: Friday, November 14, 2008 8:29 PM
> Subject: [Proto-Scripty] Chrome, Object and each()
>
> > Apparently, this does not work? I get this error message when I try
> > it:
>
> > uncaught exception TypeError: Object # has no method 'each'- 
> > Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Alex Mcauley

each does an array itterator no ?
- Original Message - 
From: "laurin1" <[EMAIL PROTECTED]>
To: "Prototype & script.aculo.us" 
Sent: Friday, November 14, 2008 8:29 PM
Subject: [Proto-Scripty] Chrome, Object and each()


>
> Apparently, this does not work? I get this error message when I try
> it:
>
> uncaught exception TypeError: Object # has no method 'each'
> >
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---