Displaying 2 results from an estimated 2 matches for "save_button".
2010 Jan 20
5
disable submit_tag after click
This code disables the ''Save'' button once clicked, but doesn''t seem to
send the form data.
<%= submit_tag ''Save'', :class => ''submit'', :onclick =>
"document.getElementById(''save_button'').disabled=true;", :id =>
"save_button" %>
This code sends the form data and a record is created, but isn''t
disabled once clicked. A user can click this many times, creating a new
record each time.
<%= submit_tag ''Save'', :class => ...
2006 Apr 14
1
Script.aculo.us Effects with callbacks not working as it should.
...ntent_editor_" + content_id,
content_node: "content_node_" + content_id,
editor_textarea: "editor_textarea_" + content_id,
editor: "editor_" + content_id,
edit_button: "edit_text_" + content_id,
save_button: "save_text_" + content_id,
busy_indicator: "busy_indicator_" + content_id
};
// Then turn the object into a hash.
var content_and_editor_variables_hash =
$H(content_and_editor_variables);
// Return the hash.
return c...