Does RJS inherently support the Element.toggle effect? I haven''t been able to call it the way you call "appear", "fade", etc... Jeff -- Posted via http://www.ruby-forum.com/.
Yes, you should be able to do: page.toggle ''element'' -- Joe Clarke RailsPlayground.com On 4/7/06, Jeff Coleman <progressions@gmail.com> wrote:> Does RJS inherently support the Element.toggle effect? I haven''t been > able to call it the way you call "appear", "fade", etc... > > Jeff > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Joe Clarke wrote:> Yes, you should be able to do: > > page.toggle ''element'' > > -- > Joe Clarke > RailsPlayground.comThanks 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 -- Posted via http://www.ruby-forum.com/.
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:> 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 > > -- > 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
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.comThanks, Cody! That''s even nicer. I''m looking forward to your book on RJS by the way :) Jeff -- Posted via http://www.ruby-forum.com/.
> Thanks, Cody! That''s even nicer. I''m looking forward to your book on > RJS by the way :) > > JeffThanks Jeff, I''m working really hard on getting it finished :) On 4/8/06, Jeff Coleman <progressions@gmail.com> wrote:> 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 > > -- > 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