Try
start_form_tag({:action => "save_order"}, :onsubmit => "js
here")
You can pass arbitrary html attributes this way as well.
On 7/26/05, Shelby Westman
<shelby.westman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have been trying to figure out how to call a javascript confirm
> function using on_submit from from a form. I can''t find an
example
> anywhere. Do I call it from the form_tag, or the submit_tag. In any
> case, can someone give me an example? I am really stumped...
>
> Thanks
> Shelby
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>