Guys
I found the problem (in my code..) and $$ works just fine :)

thank you and sorry for the bother

On Mon, Apr 19, 2010 at 12:48 PM, T.J. Crowder <[email protected]>wrote:

> Hi,
>
> It doesn't seem like you're having any trouble with `$$`, that part's
> working fine.
>
> 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.
>
> HTH,
> --
> T.J. Crowder
> Independent Software Consultant
> tj / crowder software / com
> www.crowdersoftware.com
>
>
> On Apr 19, 9:15 am, Ran Berenfeld <[email protected]> wrote:
> > Hello
> > 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];
> >                 alert(item);
> >                  ...
> >         }
> >
> > 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
> [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<prototype-scriptaculous%[email protected]>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/prototype-scriptaculous?hl=en.
>
> --
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<prototype-scriptaculous%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>

-- 
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 [email protected].
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.

Reply via email to