Ruby on Rails
Thursday, August 8, 2013
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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment