Hello

Yes indeed,

this.activeTabId = 'tab4'



On Fri, Mar 27, 2009 at 10:12 PM, Howard Lewis Ship <hls...@gmail.com>wrote:

> Do you mean:
>
> this.activeTabId = 'tab4'
>
> ?
>
> If not, there's your answer.
>
> On Fri, Mar 27, 2009 at 11:35 AM, Peter Kanze <peterka...@gmail.com>
> wrote:
> > Hello
> > Why is this working:
> > if (element.up().id == 'tab4')
> >      element.addClassName('active');
> >
> > And this not:
> > if (element.up().id == this.activeTabId) {
> >    element.addClassName('active');
> >
> > And this.activeTabId = tab4
> >
> > See here the full javascript code:
> >
> > var ActiveStyle = Class.create();
> > ActiveStyle.prototype = {
> > initialize : function(element, activeTabId) {
> > this.activeTabId = activeTabId;
> > this.panelLinks = $('tabset').select('a');
> > Event.observe($(element), 'click', this.doConfirm
> > .bindAsEventListener(this));
> > },
> > doConfirm : function(e) {
> > this.panelLinks.each(function (element)
> > {
> > if (element.up().id == 'tab4') {
> > element.addClassName('active');
> > }else {
> > element.removeClassName('active');
> > }
> > })
> > }
> > }
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to