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 %>
<div id="spinnerBlock" style="display:none;">
<%= image_tag("/imagesA/ajax-loader.gif") %>
</div>

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

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 31, '11 at 4:38a
activeOct 31, '11 at 4:38a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Navneet A.: 1 post

People

Translate

site design / logo © 2022 Grokbase