Never mind. I found 1.5_rc1 with a search.

Keith Davis wrote:
> Do you mean prototype 1.5_rc1? Where can I download that? I only see 1.4.0.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Christophe
> Porteneuve aka TDD
> Sent: Wednesday, October 04, 2006 10:50 AM
> To: [email protected]
> Subject: [Rails-spinoffs] Re: $$ and getElementsbyClassName
>
>
> Hey Keith,
>
> Keith a écrit :
> > What does the $$ do? Also, what is the best way to do
> > getElementsbyClassName using prototype?
>
> Until 1.5_rc1, you had:
>
> document.getElementsByClassName('yourClassname');
>
> Since RC1, I believe you have it at the Element level.
>
> So either:
>
> Element.getElementsByClassName('yourId', 'yourClassname');
>
> or:
>
> $('yourId').getElementsByClassName('yourClassName');
>
> As for $$, it uses DOM traversal to implement a selection based on a *CSS
> rule*.  However, it custom-parses the rule, so it is not isomorphic to your
> browser's CSS parser.  It currently supports the following
> selectors:
>
> - descendant (' ')
> - class ('.xyz')
> - id ('#xyz')
> - attributes (full '[...]' feature set, including '=', '!=', '~=' and '|='
> operators)
> 
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to