Re: Using $$ within an element.

Daniel Eben Elmore
Sun, 03 Jun 2007 09:30:06 -0000

Excellent! Thanks for those gems. :]


-----Original Message-----
From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
[mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf
Of Mark Holton
Sent: Sunday, June 03, 2007 4:23 AM
To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: [Rails-spinoffs] Re: Using $$ within an element.

Wild.  ...can I trouble you for a short explanation on that, Chris?
Many thanks
Mark
On 6/3/07, Christophe Porteneuve <
tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:

Daniel Eben Elmore a écrit :
> I need to grab $(''box'').firstDescendant() then use
$$('' a.tooltip'') on
that
> element.

How about:

        $$(''#box > *:first-child a.tooltip'')

Otherwise, you can go:

        Selector.findElements($(''box'').firstDescendant(),
'' a.tooltip'')

--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org
<br