On Fri, Mar 20, 2009 at 9:34 AM, Peter Kanze <peterka...@gmail.com> wrote: > I have a component at the top of the page for navigating to my "main" > pages.. > This works perfect, see the xhtml code below.. But the problem is that I > want the clicked navigate link to get an class="active" attribute.
Doesn't using CSS's a:visited selector solve your problem? Other solution would be some JavaScript that inspects each <a> tag and compares its href attribute to the requested URL. If they match, you add the class attribute. This could be implemented as a mixin . . . -- Thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org