Forum: Ruby on Rails RJS support "toggle" effect?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
59ea1b450935b9d70abfec4186b7a4d5?d=identicon&s=25 Jeff Coleman (progressions)
on 2006-04-07 23:57
Does RJS inherently support the Element.toggle effect?  I haven't been
able to call it the way you call "appear", "fade", etc...

Jeff
3d7e63cfdded1786a6526f52478e6ea6?d=identicon&s=25 Joe Clarke (Guest)
on 2006-04-08 00:45
(Received via mailing list)
Yes, you should be able to do:

page.toggle 'element'

--
Joe Clarke
RailsPlayground.com
59ea1b450935b9d70abfec4186b7a4d5?d=identicon&s=25 Jeff Coleman (progressions)
on 2006-04-08 03:58
Joe Clarke wrote:
> Yes, you should be able to do:
>
> page.toggle 'element'
>
> --
> Joe Clarke
> RailsPlayground.com

Thanks Joe!  Whether here or on the support forum, you've always got an
answer :)

I was trying "page.visual_effect :toggle", instead of the right syntax.

Jeff
2ccb2f7699267d258faaafce4ee997df?d=identicon&s=25 Cody Fauser (Guest)
on 2006-04-08 20:41
(Received via mailing list)
You can also use a visual effect for more stylish toggling.  The three
toggle effects are :toggle_appear, :toggle_slide and :toggle_blind

page.visual_effect :toggle_appear, 'element'

On 4/7/06, Jeff Coleman <progressions@gmail.com> wrote:
> answer :)
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Cody Fauser
http://www.codyfauser.com
59ea1b450935b9d70abfec4186b7a4d5?d=identicon&s=25 Jeff Coleman (progressions)
on 2006-04-08 22:17
Cody Fauser wrote:
> You can also use a visual effect for more stylish toggling.  The three
> toggle effects are :toggle_appear, :toggle_slide and :toggle_blind
>
> page.visual_effect :toggle_appear, 'element'
>
> On 4/7/06, Jeff Coleman <progressions@gmail.com> wrote:
>> answer :)
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
> --
> Cody Fauser
> http://www.codyfauser.com

Thanks, Cody!  That's even nicer.  I'm looking forward to your book on
RJS by the way :)

Jeff
2ccb2f7699267d258faaafce4ee997df?d=identicon&s=25 Cody Fauser (Guest)
on 2006-04-09 03:26
(Received via mailing list)
> Thanks, Cody!  That's even nicer.  I'm looking forward to your book on
> RJS by the way :)
>
> Jeff

Thanks Jeff, I'm working really hard on getting it finished :)

On 4/8/06, Jeff Coleman <progressions@gmail.com> wrote:
> >
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Cody Fauser
http://www.codyfauser.com
This topic is locked and can not be replied to.