Hi there, I''m trying to have an Ajax form with a submit button that has the :disable_with feature, but the submit button does *not* disable... I tried like this: = = <% form_remote_tag :url => { :controller => ''profiles'', :action => ''update'' }, :method => :put do -%> <%= submit_tag ''Save'', :disable_with => ''Please wait...'' %> <% end -%> = = Is such a combination not possible or am I doing something wrong? Thank you for any help! Tom -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
BrĂ¡ulio Bhavamitra
2013-Aug-06 23:40 UTC
Re: :disable_with combined with Ajax form: Possible?
same problem here with rails 2.3.15, no fix for that? On Friday, July 30, 2010 8:16:39 AM UTC-3, Ruby-Forum.com User wrote:> > Hi there, > > I''m trying to have an Ajax form with a submit button that has the > :disable_with feature, but the submit button does *not* disable... > > I tried like this: > > > = = > <% form_remote_tag :url => { :controller => ''profiles'', :action => > ''update'' }, :method => :put do -%> > > <%= submit_tag ''Save'', :disable_with => ''Please wait...'' %> > > <% end -%> > = = > > > Is such a combination not possible or am I doing something wrong? > > Thank you for any help! > Tom > -- > 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fd7a2ab7-bca0-445b-acd5-232d1b0bda7c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Rails 3.2 and later One should use it like this: =submit_tag, data: {disable_with: ''busy....''} Op vrijdag 30 juli 2010 13:16:39 UTC+2 schreef Ruby-Forum.com User:> > Hi there, > > I''m trying to have an Ajax form with a submit button that has the > :disable_with feature, but the submit button does *not* disable... > > I tried like this: > > > = = > <% form_remote_tag :url => { :controller => ''profiles'', :action => > ''update'' }, :method => :put do -%> > > <%= submit_tag ''Save'', :disable_with => ''Please wait...'' %> > > <% end -%> > = = > > > Is such a combination not possible or am I doing something wrong? > > Thank you for any help! > Tom > -- > 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3e5fb34e-2f62-4e09-964d-b460ce3c1945%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.