Hello,

The a:visited is not an option because only one tab button can be active.

About the mixin solution, how can I check the requested URL in my mixin?
Do you have a quick example?

Thanks!
Peter

On Fri, Mar 20, 2009 at 1:38 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> 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
>
>

Reply via email to