On Thursday 06 April 2006 19:53, Jeremy Kitchen wrote:
> 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 confused ;(

ok, as I was writing up a less complicated scenario to test this with, I 
realized I was calling document.getElementsByClassName

elementS, as in PLURAL, as in i was getting an array back :)  putting [0] 
(since I know there is only one with that class name) into after the call 
worked, although it appears that Effect.toggle is not working.. oh well :)

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

Attachment: pgp2qJ0BFk42s.pgp
Description: PGP signature

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

Reply via email to