Hi guys: Thanks for your help so far - think I''ve progressed pretty far down the Rails front but I think I''m getting stuck, maybe you can help me out: I''ve got a twitter like app where I''m trying to display new tweets as they come in. This is what I''m doing right now: render :update do |page| page.insert_html :top, ''tweebs-box'', :partial => ''livetweebs'' end ...which, of course, takes the new content and inserts it before the current set on the screen. What i''d like to do is to have it slide down elegantly upon the insert, instead of just snap down. I''ve been thinking of an easy way to do this but this is the only way I can think of: maybe there is an easier way? 1. display the page the first time with a div for the current stuff and a hidden div above it for the new stuff to come 2. load the content into the hidden div 3. slide down the new div, thus pushing the current div down 4. insert a new div above this div for the next set to be inserted into Is there an easier way? Thanks...Chris -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Chris Kalaboukis
2010-Jun-07 18:13 UTC
Re: Visual Effect: insert new stuff, then slide open
anyone? Chris Kalaboukis wrote:> Hi guys: Thanks for your help so far - think I''ve progressed pretty far > down the Rails front but I think I''m getting stuck, maybe you can help > me out: > > I''ve got a twitter like app where I''m trying to display new tweets as > they come in. This is what I''m doing right now: > > > Is there an easier way? > > Thanks...Chris-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Piyush Choudhary
2010-Jun-07 18:49 UTC
Re: Re: Visual Effect: insert new stuff, then slide open
try this, if it helps http://wiki.github.com/madrobby/scriptaculous/combination-effects-demo On Mon, Jun 7, 2010 at 11:43 PM, Chris Kalaboukis <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> anyone? > > Chris Kalaboukis wrote: > > Hi guys: Thanks for your help so far - think I''ve progressed pretty far > > down the Rails front but I think I''m getting stuck, maybe you can help > > me out: > > > > I''ve got a twitter like app where I''m trying to display new tweets as > > they come in. This is what I''m doing right now: > > > > > > Is there an easier way? > > > > Thanks...Chris > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Chris Kalaboukis
2010-Jun-09 01:11 UTC
Re: Re: Visual Effect: insert new stuff, then slide open
Piyush Choudhary wrote:> try this, if it helps > http://wiki.github.com/madrobby/scriptaculous/combination-effects-demoHi Piyush: I tried that. I can''t get it to move down smoothly... -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.