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')), '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 (effects.js: line 153)

I look at line 153 and see:
   Effect[element.visible() ?

should that be:
Effect[Element.visible(element) ?
instead?

-Jeremy

--
Jeremy Kitchen ++ [EMAIL PROTECTED]

In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.

And the lord said unto John; Come forth and receive eternal life. John came
   fifth and won a toaster.


_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to