[Prototype-core] Re: Unexpected behaviour when using $A(document.getElementsByTagName(script))

2007-05-04 Thread Richard Quadling
On 03/05/07, jdalton [EMAIL PROTECTED] wrote: Hello Richard, First, this is not a $A() issue. When you called ''With Reporter' you wont get scritpaculous because your code is executing before scriptaculous is even rendered via the dom. (top down) The dom should be there onLoad though.

[Prototype-core] Re: Unexpected behaviour when using $A(document.getElementsByTagName(script))

2007-05-04 Thread jdalton
Hello Richard, This is the source of $A: var $A = Array.from = function(iterable) { if (!iterable) return []; if (iterable.toArray) { return iterable.toArray(); } else { var results = []; for (var i = 0, length = iterable.length; i length; i++)

[Prototype-core] Re: Unexpected behaviour when using $A(document.getElementsByTagName(script))

2007-05-03 Thread jdalton
Hello Richard, First, this is not a $A() issue. When you called ''With Reporter' you wont get scritpaculous because your code is executing before scriptaculous is even rendered via the dom. (top down) The dom should be there onLoad though. If not try: Event.observe(window, 'load', function(){