[Effect.toggle]

4 views
Skip to first unread message

slein

unread,
Jul 16, 2008, 9:43:34 AM7/16/08
to Ruby on Rails: Spinoffs
He there,
i just found out about "scriptaculouse". Great one.
I have a question to "Effect.toggle".

How do i make it, that the div which toggles in and out is NOT
visible, when i 1st load the page?

I refer to this code: http://github.com/madrobby/scriptaculous/wikis/effect-toggle

Christophe Porteneuve

unread,
Jul 16, 2008, 10:17:51 AM7/16/08
to rubyonrail...@googlegroups.com
Please post your further inquiries to the new group:

http://groups.google.com/group/prototype-scriptaculous
prototype-s...@googlegroups.com

slein a écrit :


> How do i make it, that the div which toggles in and out is NOT
> visible, when i 1st load the page?

Add an inline style="display: none;" to your markup for it. This is the
only proper way to initially hide elements for Proto/Scripty-based
effects and togglers.

--
Christophe Porteneuve aka TDD
t...@tddsworld.com

slein

unread,
Jul 16, 2008, 10:22:47 AM7/16/08
to Ruby on Rails: Spinoffs
THANK YOU!
Works great! (and was so simple)
Next time i use my brain right away =)
Reply all
Reply to author
Forward
0 new messages