Phlip
2006-Nov-12 17:00 UTC
Is the append function at Enhancing_RoRs_AJAXUpdater now built into Rails?
Railsers: I want to chat. I want my chatter to append chat to the end of a conversation, using a specialization of periodically_call_remote that appends its new content to the end of a span. I don''t want it to download the entire conversation once per update. (BTW, surfing all these chatty blogs, written in Rails with Ajax, tends to put one of my IEs into multiple busy loops. I''l get back to y''all about that!) This page sez Matt researched how to append instead of replace, and he offers it as a JS supplement: http://www.mattmccray.com/archive/2005/03/24/Enhancing_RoRs_AJAXUpdater My question is: Do I need to use that, or has that or similar functionality since been added to the Rails distribution? Using Google CodeSearch on one of Matt''s important statements didn''t kick up anything... -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2006-Nov-12 17:17 UTC
Re: Is the append function at Enhancing_RoRs_AJAXUpdater now
I seem to recall that if you have :update =>''some_div'' then you can say (for example) :position => :bottom for the html retrieved to be stuck at the bottom of said div (and you should also be able to use :after, :top etc.... Fred -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> :position => :bottomThanks - it works great! For future reference, Googling for "append" doesn''t do much, and Googling for "bottom" is right out! ;-) -- Phlip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---