:disable_with combined with Ajax form: Possible?

32 views
Skip to first unread message

Tom Ha

unread,
Jul 30, 2010, 7:16:39 AM7/30/10
to rubyonra...@googlegroups.com
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/.

Bráulio Bhavamitra

unread,
Aug 6, 2013, 7:40:32 PM8/6/13
to rubyonra...@googlegroups.com
same problem here with rails 2.3.15, no fix for that?

javinto

unread,
Aug 8, 2013, 4:08:54 AM8/8/13
to rubyonra...@googlegroups.com
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:
Reply all
Reply to author
Forward
0 new messages