Is there a reason I can''t find any information on using the onsubmit attribute with form_for? I''d hate to *gasp* hardcode the form tag in. chad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
onsubmit is simply a pass-through attribute -- AFAIK there is no processing done by Rails. Onsubmit is used to specify a JavaScript event handler. -Bill On Feb 7, 1:24 am, "Chad Arimura" <carim...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a reason I can''t find any information on using the onsubmit > attribute with form_for? I''d hate to *gasp* hardcode the form tag in. > > chad--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
you can pass e.g., :html => { :method => :get, :onsubmit =>
''blahblah;'' } to form_for.
-b
On 2/7/07, Chad Arimura <carimura-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> Is there a reason I can''t find any information on using the
onsubmit
> attribute with form_for? I''d hate to *gasp* hardcode the form tag
in.
>
> chad
> >
>
--
Bosko Milekic <bosko.milekic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
http://www.crowdedweb.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---