RE: [Rails-spinoffs] Effect.toggle error in 1.6.1

2006-04-07 Thread Gregory Hill
: Re: [Rails-spinoffs] Effect.toggle error in 1.6.1   The Element object is extend()'d in Prototype 1.5, so instead of doing "Element.meth(element)" you can do "$('id').meth()" On 4/6/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: I have th

Re: [Rails-spinoffs] Effect.toggle error in 1.6.1

2006-04-07 Thread Ed C.
The Element object is extend()'d in Prototype 1.5, so instead of doing "Element.meth(element)" you can do "$('id').meth()" On 4/6/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: I have this line of code:   new Effect.toggle(document.getElementsByClassName('modarea',Event.findElement (ev,'li')), '

Re: [Rails-spinoffs] Effect.toggle error in 1.6.1

2006-04-06 Thread Jeremy Kitchen
On Thursday 06 April 2006 19:44, Jeremy Kitchen wrote: > I look at line 153 and see: > Effect[element.visible() ? > > should that be: > Effect[Element.visible(element) ? > instead? hrm, I tried Element.visible(element) and got: $(element).style has no properties (prototype.js: line 926) I'm c

[Rails-spinoffs] Effect.toggle error in 1.6.1

2006-04-06 Thread Jeremy Kitchen
I have this line of code: new Effect.toggle(document.getElementsByClassName('modarea', Event.findElement(ev,'li')), 'blind'); I've confirmed that the Effect.toggle is indeed getting the proper element, however, I'm getting this in my javascript console: element.visible is not a function