You have an element that isn't extended. Wrap your e element in a $():
$(e).up(1)....
On Fri, Jun 13, 2008 at 9:46 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> another problem is that:
> ...
> e.up(1).getElementsBySelector('li.menu').each(function(i)
> {i.removeClassName('active');});
> ...
>
> doesn't work, but:
>
> Element.up(e, 1).getElementsBySelector('li.menu').each(function(i)
> {i.removeClassName('active');});
>
> works fine...
--
Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---