I have a form that for the most part just submits as a normal form, so I don't want to set in the form_tag the :remote => true option.
However, under certain circumstances I'd like to be able have a javascript function post the form as if it had been posted by :remote => true. What would I need to do in javascript to accomplish this?