andre-gZ/NmiIjn+fd97z9P8fs216hYfS7NtTn@public.gmane.org
2006-Oct-23 20:27 UTC
Hiding the initial state of AJAZy partials.
I am new to Rails, Ruby and AJAX, but I''m getting there. I am working on a tutorial project from AWDwR. Its a simple shopping cart app in which I''m displaying a shopping cart right in the main layout by redering a partial for the cart, which in turn renders a collection of partials for each product in the cart. When a product is added, I''m using an rjs template to hit the new/affected cart item partial with some AJAX effects. When using the visual_effect grow, the partial is rendered at full size, then immediately shrinks and grows into place causing some ugly flickering. The book suggests figuring out how to hide the initial state, but I can''t figure out how! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
on the html tag for whichever thing you are wanting to hide put style="display: none" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---