RJS support "toggle" effect?


#1

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

Jeff


#2

Yes, you should be able to do:

page.toggle ‘element’


Joe C.
RailsPlayground.com


#3

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


#4

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 removed_email_address@domain.invalid 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


#5

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 removed_email_address@domain.invalid wrote:

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


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


#6

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 removed_email_address@domain.invalid wrote:


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


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


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