You can't really do that.  $(myForm).submit() doesn't actually call the
onsubmit handler.  Why can't you do all the hook logic in your form submit
handler, and then conditionally allow the submit to proceed if it checks
out?

-Fred

On Thu, Jun 26, 2008 at 2:45 PM, Chris S <[EMAIL PROTECTED]> wrote:

>
> Here's the <form> tag created by form_remote_tag:
>
> <form action="/some/path" method="post" onsubmit="new Ajax.Request('/
> some/path', {asynchronous:true, evalScripts:true,
> parameters:Form.serialize(this)}); return false;">
>
> Maybe I could manually trigger the forms onsubmit handler? How would I
> do that?


-- 
Science answers questions; philosophy questions answers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to