search for: edit_idea_form

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

2006 Mar 22
0
Changing the onsubmit event using an RJS template
...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. I''d like to be able to do something like: page[''e...