Ruby on Rails Tuesday, August 6, 2013

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@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/fd7a2ab7-bca0-445b-acd5-232d1b0bda7c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment