using image with submit_to_remote

Sijo Kg wrote:

Hi     How can I give an image to submit_to_remote .I could successfully do it with link_to_remote as below..But the same not working with submit_to_remote

   <%= link_to_remote( image_tag("/images/cancel.png", {:alt => 'Cancel', :class=>"noborder",:title=>"Cancel"}),          {:update => "search_contact_div",          :url => {:controller => 'admin', :action => 'search_contact_cancel'}}                               ) %>

                             Please help Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/.

it should be something like this....

<% form_remote_tag(:url => { :action => :foo}, :complete => "do_some_cool_ajax(request);") do %>