Re: T5: Prototype question

2009-03-28 Thread Peter Kanze
Hello Yes indeed, this.activeTabId = 'tab4' On Fri, Mar 27, 2009 at 10:12 PM, Howard Lewis Ship wrote: > Do you mean: > > this.activeTabId = 'tab4' > > ? > > If not, there's your answer. > > On Fri, Mar 27, 2009 at 11:35 AM, Peter Kanze > wrote: > > Hello > > Why is this working: > > if (ele

Re: T5: Prototype question

2009-03-27 Thread Howard Lewis Ship
Do you mean: this.activeTabId = 'tab4' ? If not, there's your answer. On Fri, Mar 27, 2009 at 11:35 AM, Peter Kanze wrote: > Hello > Why is this working: > if (element.up().id == 'tab4') >      element.addClassName('active'); > > And this not: > if (element.up().id == this.activeTabId) { >    

T5: Prototype question

2009-03-27 Thread Peter Kanze
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(); ActiveSty