search for: ajax_add

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

2006 Mar 22
0
Changing the onsubmit event using an RJS template
...whilst entering a new value for the select box the application will save the new value for the select box rather than submitting the form to the original action. I''ve worked out that the javascript I need can be generated with this:- options = { :url => {:action => ''ajax_add''}, :with => "Form.Element.serialize(''idea_type_title'')" } page << "$(''edit_idea_form'').onsubmit = function() { # { remote_function(options) }; return false; }" However... This seems a bit ugly to me. It seems that the r...