search for: enter_payment

Displaying 1 result from an estimated 1 matches for "enter_payment".

2007 Dec 04
6
Problem preventing double click with ajax submit button
...; ''create'' do %> <%= submit_tag "Create", :onclick => "this.disabled=true,this.form.submit();"%> I''m having trouble using this same method to prevent double clicks in an ajax form: <% form_remote_tag :url => {:action => ''enter_payment''} do %> <%= submit_tag ''Enter'', :onclick => "this.disabled=true,this.form.submit();" %> This controller method ''enter_payment'' for this ajax form creates an object and re-renders a couple partials. With this code, the object is cre...