Assuming you really want the $ as part of the variable name, this should be:
var $aCSS = $A(document.getElementsByTagName('style'));
-Original Message-
From: prototype-scriptaculous@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of laurin1
Sent: Monday, December 01,
On 1.12.2008, at 23.14, laurin1 wrote:
var $aCSS = document.getElementsByTagName('style');
$aCSS.each(function($sEle){
alert('test');
});
I can make this work with $$, and if I use
document.getElementsByTagName('style')[0], I can access each one
individually. So why can't I use
I was under the impression that $$ was not very efficient, or do you
mean there is another way that I am overlooking?
On Dec 1, 3:25 pm, Jarkko Laine [EMAIL PROTECTED] wrote:
On 1.12.2008, at 23.14, laurin1 wrote:
var $aCSS = document.getElementsByTagName('style');
On Dec 1, 7:03 pm, Jerod Venema [EMAIL PROTECTED] wrote:
It previously had some performance issues, but now that should not be
noticeable.
Actually, `getElementsByTagName` is still marginally faster than `$$`
in slower engines (e.g. IE).
[...]
--
Jerod Venema
Frozen Mountain