Heres the thing. I want to render a page with standard .rhtml and I want to do some RJS style effects on the same page. Inline RJS doesnt work. I cant do a render :rjs Obviously I know it can be done... simple example of what I want to do is what basecamp does... on adding a message, it does a visual_effect on the new message. What am I missing? Rajesh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 13, 12:53 pm, "K. Rajesh" <kaviraj...-uAjRD0nVeow@public.gmane.org> wrote:> Heres the thing. I want to render a page with standard .rhtml and I > want to do some RJS style effects on the same page. > > Inline RJS doesnt work. I cant do a > render :rjsYou can use the Scriptaculous helpers: http://api.rubyonrails.com/classes/ActionView/Helpers/ScriptaculousHelper.html to put raw JavaScript for visual effects straight into your RHTML templates: <%= visual_effect(...) %> You''ll want to wrap this code in <script>...</script> tags, or put it in an onload, or something like that. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Chris... peach. Rajesh On Mar 13, 6:35 pm, "Chris Mear" <c...-OIzkuoyqg0kAvxtiuMwx3w@public.gmane.org> wrote:> On Mar 13, 12:53 pm, "K. Rajesh" <kaviraj...-uAjRD0nVeow@public.gmane.org> wrote: > > > Heres the thing. I want to render a page with standard .rhtml and I > > want to do some RJS style effects on the same page. > > > Inline RJS doesnt work. I cant do a > > render :rjs > > You can use the Scriptaculous helpers: > > http://api.rubyonrails.com/classes/ActionView/Helpers/ScriptaculousHe... > > to put raw JavaScript for visual effects straight into your RHTML > templates: > > <%= visual_effect(...) %> > > You''ll want to wrap this code in <script>...</script> tags, or put it > in an onload, or something like that. > > Chris--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---