Spinner not showing up for form_remote_tag in rails 2.3.11

Hi,
I’ve a form_remote_tag as a part of my Rails 2.3.11 application. Upon
form submit, ajax works appropriates. I use rjs to update the div with
results.

However the spinner doesn’t display.

Here’s the code:

<% form_remote_tag :url => {:action => ‘getHotels’},:loading =>
“$(‘spinnerBlock’).show()”,:complete => “$(‘spinnerBlock’).hide()” do
%>



<%= submit_tag 'Search ',:class =>“btn-112x22 mT10” %>
<% end %>

<%= image_tag("/imagesA/ajax-loader.gif") %>

I’ve also tried following code:

<% form_remote_tag :url => {:action => ‘getHotels’},:loading =>
“Element.show(‘spinner’)”,:complete => “Element.hide(‘spinner’)” do %>

Any help is much appreciated.

Best,
Navneet

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs