Displaying 1 result from an estimated 1 matches for "idea_types".
2006 Mar 22
0
Changing the onsubmit event using an RJS template
...9;edit_idea_form''].onsubmit = "function() { #{ remote_function
(options) }; return false; }"
But this insists on generating (with the quotes, which unfortunately
doesn''t work):
$("edit_idea_form").onsubmit = "function() { new Ajax.Request(''/
idea_types/ajax_add'', {asynchronous:true, evalScripts:true,
parameters:Form.Element.serialize(''idea_type_title'')}); return
false; }";
rather than:
$("edit_idea_form").onsubmit = function() { new Ajax.Request(''/
idea_types/ajax_add'', {asynchron...