RJS support "toggle" effect?

Does RJS inherently support the Element.toggle effect? I haven’t been
able to call it the way you call “appear”, “fade”, etc…

Jeff

Yes, you should be able to do:

page.toggle ‘element’


Joe C.

Joe C. wrote:

Yes, you should be able to do:

page.toggle ‘element’


Joe C.
RailsPlayground.com

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

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

Jeff

Cody F. 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 C.man [email protected] wrote:

answer :slight_smile:
http://lists.rubyonrails.org/mailman/listinfo/rails


Cody F.
http://www.codyfauser.com

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

Jeff

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 C.man [email protected] wrote:

answer :slight_smile:
http://lists.rubyonrails.org/mailman/listinfo/rails


Cody F.
http://www.codyfauser.com

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

Jeff

Thanks Jeff, I’m working really hard on getting it finished :slight_smile:

On 4/8/06, Jeff C.man [email protected] wrote:


Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Cody F.
http://www.codyfauser.com