I have a form which makes an ajax call, and I would like it to fade away, and thereby remove, another element on the page if it succeeded. I tried something like this, but without any luck :( <%= form_remote_tag(:update => "status", :url => "/image/delete/" + image.id.to_s, :succes => visual_effect(:fade, image.id.to_s, :duration => 2.0) )%> <%= submit_tag "Delete", :onclick => "return confirm(''You really want to delete this?'');" %> <%= end_form_tag %> thanks in advance :) PS: the image is generated like this: <%link_to image_tag(image.thumbnail(), :border => 0), :controller => ''gallery'', :action => ''show'', :id => image.id %> -- 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 -~----------~----~----~----~------~----~------~--~---