Jim ruther Nill wrote in post #983573:
> On Thu, Feb 24, 2011 at 2:56 PM, Sai Babu <[email protected]> wrote:
>
>>    </label>
>>    <%= select_tag
>> "status",options_for_select(Report::STATUS.collect.insert(0,'')) %>
>>    <%= submit_tag 'Get Reports' %>
>>    <% end %>
>>
>>
> There's something wrong with your :loading and :complete arguments. I
> think
> Element.hide and Element.show
> expects an element id. change it to
>
> :complete => '$("spinner").hide();'
> :loading => '$("spinner").show()'
>
> then add this where you like the image to show
>
> image_tag '/images/spinner.gif', :id => 'spinner'
>
>
>>
>> Thanks in advance
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>
>
> --


Hi Jim ruther Nill


Thank You For Suggestion

It is working fine with little bit modification

I have place this information in  form_remote_tag as

<% form_remote_tag(:url => { :action=>"get_reports" } ,:before => 
"$('spinner').show();", :complete => '$("spinner").hide();') do %>

Here i placed  my code.....

<% end %>

So Here i am using these
:before => '$("spinner").show();',

:complete => '$("spinner").hide();')

i have defined a div called below

<div id="spinner">
 <%= image_tag "../images/spinner.gif" %>
</div>

Now it is working fine ..............




But if suppose i am using :loading instead of :before it is not showing 
spinning image....

Why?
What is the reason?
Ant one Have Any Idea?

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

Reply via email to