I would suggest you to read about the Ajax/RJS in general and in Rails.
There are numerous free books/resources available.
For the stuff you just asked, it's like this....
It's called indicator, for which most of the world use an animated gif
image for the purpose.
So you need to put an indicator image in a hidden state. And then you
can show/hide it based on the ajax request status.
Here you can pick up any gif image you would like
there are numerous more available on web.
And can implement it as following....
Say, your image is indicator.gif
put your gif image anywhere in your form or on your page like this...
<%= image_tag "indicator.gif", :id => "any_uniq_indicator_id", :style =>
And add this to your form_remote_tag code... (ps: the loading and
<%= form_remote_for :some_symbol, :url => the_url_youve_given, :loading
=> "$('any_uniq_indicator_id').show()", :complete =>
Mamadou Touré wrote: