Forum: Ruby on Rails fade out and then fade in....how to make it work?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
73606b1d1042de19056f3d59492b652f?d=identicon&s=25 Charlie Bowman (beachguy82)
on 2006-03-08 01:53
I'm trying to have one image fade out and then another slidedown upon
completion of the ajax call.  I can't get the timing correct.  How do
you do it? Here's what I'm trying (this does not work)
 <%= link_to_remote(image_tag(url_for_file_column(product, "image_url"),
       :update =>  'right_content',
       :url    =>  { :action =>  :product_details,
                     :id     =>  product.id  },
       :loading  => visual_effect(:fade, "right_content", :duration =>
0.5 ),
       :complete =>  visual_effect(:slideDown, "right_content",
:duration => 0.5 )
    )%>
73606b1d1042de19056f3d59492b652f?d=identicon&s=25 Charlie Bowman (beachguy82)
on 2006-03-08 02:07
I"m getting closer but this still doesn't work. It switches the images
while the first fade effect is happening.
>  <%= link_to_remote(image_tag(url_for_file_column(product, "image_url"),
>        :update =>  'right_content',
>        :url    =>  { :action =>  :product_details,
>                      :id     =>  product.id  },
>        :before => visual_effect(:fade, "right_content", :duration => 1.5, :queue => 
'front'),
         :complete =>  visual_effect(:appear, "right_content", :duration
=> 0.5,:queue => 'end')
>     )%>
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-03-08 15:15
(Received via mailing list)
Anyone know how to do this? Someone has got to know how to do this.

On Wed, 2006-03-08 at 02:07 +0100, charlie bowman wrote:

>
>

Charlie Bowman
Programmer
Castle Branch Inc.
This topic is locked and can not be replied to.