Daniel Zepeda
2005-Jul-12 09:44 UTC
Ajax Visual effects don''t work after upgrade to 0.13.1
Hi, The subject says it all. I''ve been beating my head up against this for awhile now. I''ve updated my code to use the new visual_effect helper after the old one that was working (the new Effect.Appear(...)) stopped working. I also re-ran rails in my app and all that. I even completely recreated it and started copying files over until the app itself worked, but to no avail, the effect still doesn''t work. The visual_effect(...) call is not working either. Can anybody point me in the right direction?
Daniel Zepeda
2005-Jul-12 10:48 UTC
Re: Ajax Visual effects don''t work after upgrade to 0.13.1
Daniel Zepeda <ror@...> writes:> > Hi, > > The subject says it all. I''ve been beating my head up against this for awhile > now. I''ve updated my code to use the new visual_effect helper after the old one > that was working (the new Effect.Appear(...)) stopped working. > > I also re-ran rails in my app and all that. I even completely recreated it and > started copying files over until the app itself worked, but to no avail, the > effect still doesn''t work. > > The visual_effect(...) call is not working either. Can anybody point me in the > right direction? >Ahah! Figured it out. Should have taken a break _before_ I posted! In any case, the effects have been split out into their own .js file. So all I did was add: <%= javascript_include_tag "effects" %> into my application.rhtml and voila! I would assume you''d have to do that using any of these .js files: ./public/javascripts/effects.js ./public/javascripts/dragdrop.js ./public/javascripts/controls.js Just like the docs said about the prototype.js DZ
Matt Pelletier
2005-Jul-12 11:19 UTC
Re: Re: Ajax Visual effects don''t work after upgrade to 0.13.1
You can also now use: <%= javascript_include_tag :defaults %> Which will write tags for each of the four javascripts (make sure you use :defaults with an S) --Matt On Jul 12, 2005, at 6:48 AM, Daniel Zepeda wrote:> > > Daniel Zepeda <ror@...> writes: > > >> >> Hi, >> >> The subject says it all. I''ve been beating my head up against this >> for awhile >> now. I''ve updated my code to use the new visual_effect helper >> after the old one >> that was working (the new Effect.Appear(...)) stopped working. >> >> I also re-ran rails in my app and all that. I even completely >> recreated it and >> started copying files over until the app itself worked, but to no >> avail, the >> effect still doesn''t work. >> >> The visual_effect(...) call is not working either. Can anybody >> point me in the >> right direction? >> >> > > Ahah! > > Figured it out. Should have taken a break _before_ I posted! > > In any case, the effects have been split out into their own .js > file. So all I > did was add: > > <%= javascript_include_tag "effects" %> > > into my application.rhtml > > and voila! > > I would assume you''d have to do that using any of these .js files: > > ./public/javascripts/effects.js > ./public/javascripts/dragdrop.js > ./public/javascripts/controls.js > > Just like the docs said about the prototype.js > > DZ > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >Matt Pelletier pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org