On 24 February 2011 06:56, Sai Babu <[email protected]> wrote: > Problem: > > View Code:--> > > <% form_remote_tag :url => > get_reports_backend_billing_billing_reports_path,:update => "reports", > :complete => "Element.hide('../images/spinner.gif')", :loading => > "Element.show('../images/spinner.gif')" do %> > <label> > Select Status: > </label> > <%= select_tag > "status",options_for_select(Report::STATUS.collect.insert(0,'')) %> > <%= submit_tag 'Get Reports' %> > <% end %> > > Controller code:- > def reports > reports = Report.find_reports(params[:status]) > @reports = reports.first > if request.post? > render :update do |page| > page.replace_html "reports_table",:partial => 'reports' > end > end > end > > > Here form is working fine when i am selecting status .. but when i click > on submit spinner image is not coming ...
Install Firebug in Firefox and see whether it throws up any errors when you click the button. Colin > > Suppose if i am using :disable_with in the submit_tag it is giving RJS > error. > > Why? > Could any help me!!!!!! > > Thanks in advance > > -- > 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. > > -- 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.

