On Dec 25, 4:27 pm, chris at zeus <[EMAIL PROTECTED]> wrote:
> You know I'm trying this, just because it is more familiar that the
> double dollar sign, but nothing is happening.  At least with "this" in
> front, I get errors. :-)

RobG has led you astray! ;)

addClassName is a method and should be invoked as such:

$(h2).addClassName('name' + i);

If you want to use the native getElementsByTagName method, you need to
wrap the individual nodes in $ or Element.extend before calling
instance methods. This is unnecessary if you use $$.

Cheers,
Andrew

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to