search for: idea_type_titl

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

Did you mean: idea_type_title
2006 Mar 22
0
Changing the onsubmit event using an RJS template
...e 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 ruby way would be to be able to use one of the helper functions to do this....