Hey guys, YES I did do a search =) Here is my code: index.rhtml: <div id="search_form"> <%= form_remote_tag :url => {:controller => "amazon", :action => "search"}, :update => ''hidden_div'', :loading => "Element.hide(''hidden_div''); Element.show(''spinner'');", :complete => "Element.hide(''spinner''); Effect.BlindDown(''hidden_div'');" %> Search for Movie: <%= text_field "post", "title", :size => "15", :style => "font-size: 18px; border: 1px solid #BBB" %> <%= submit_tag "Search", :style => "font-size: 18px; border: 1px solid #BBB" %> <span id="spinner" style="display: none;"><%= image_tag "ajax-loader.gif"%> </span> <%= end_form_tag %> </div> <div id="hidden_div" style="display: none;"> controller: def search # Query Amazon request = Request.new(DEV_TOKEN) response = request.keyword_search params[:post][:title], ''dvd'', LITE @products = response.products.slice(0,5) render :partial => "movie_item", :collection => @products end partial: <div class="movie_item float_left"> <img src="<%= movie_item[:image_url_medium] %>"/> </div> When the BlindDown occurs (on FF 1.5.0.7), if it is the FIRST time loading the data, then the blind occurs until about halfway through displaying the images and then just *jumps* to the bottom. If I try the same query for the same keyword again or anything later, the blind is nice and smooth. Any ideas how to fix this? Thanks! -- 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 -~----------~----~----~----~------~----~------~--~---
Btw, That hidden_div is closed AND the problem only occurs when displaying images, text blinds down fine. Is there a way to cache the images before display or anything? -- 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 -~----------~----~----~----~------~----~------~--~---
Vishal wrote:>Is there a way to cache the images before display or anything?Yes, but I don''t know how :-) gucci.com (created by those responsible for scriptaculous) seems to cache images before displaying them - if you can figure out how they''re doing it. Whole lot of beautiful javascript magic going on there, check out the catalog section. http://www.gucci.com/ If you figure it out, let us know. DC -- 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 -~----------~----~----~----~------~----~------~--~---
David Coleman wrote: actually googled and found something. check out the image.complete property. seems like that''s part of what gucci.com is using.... DC -- 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 -~----------~----~----~----~------~----~------~--~---