It doesn't seem like you're having any trouble with `$$`, that part's
I'm guessing those links don't have an `href` attribute on them. When
you do `alert(item)` in that code, what happens behind the scenes is
that (through a couple of layers) the object's `toString` method ends
up getting called. I don't know whether this behavior is specified
somewhere or not, but on the three browser engines I tried (IE7,
Firefox, Chrome), they all showed the `href` of the anchor, and if
there wasn't one, they gave a blank string. I also tried a div, which
showed something more like what you were expecting.
I'm afraid I don't know what you mean by "store it to a timer", so I
can't comment on that. If you post some sample code, happy to take a
look, but your use of `$$` is just fine.
Independent Software Consultant
tj / crowder software / com
On Apr 19, 9:15 am, Ran Berenfeld <berenfeld...@gmail.com> wrote:
> I tried to use $$ to make flash effect on some <a> elements in my site
> the code looked like this :
> var itemsArray = $$("a.resultsSummary");
> for (var i=0;i < itemsArray.length;i++)
> var item = itemsArray[i];
> however, the alert(item) prints empty string. I would expect
> "HtmlAElement" or something like this...
> when I do item.style.backgroundColor = "yellow" it works fine, but
> when I store it to a timer (in order
> to turn it off) it is not working.
> any help ?
> 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-scriptacul...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at