Fade away

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 :frowning:

<%= 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 :slight_smile:

PS: the image is generated like this:
<%=
link_to image_tag(image.thumbnail(),
:border => 0),
:controller => ‘gallery’,
:action => ‘show’,
:id => image.id
%>