[Partially solved] Re: [Rails] AJAX in Ruby on Rails

Kelly Felkins railsinator at gmail.com
Wed Apr 12 02:09:57 GMT 2006


Did you solve this problem? I'm experiencing the same problem.

Thanks,

-Kelly


On 12/15/05, Ugo Cei <ugo.cei at gmail.com> wrote:
>
> OK, I found what the problem was: my form consisted only of a group
> of radio buttons, with no submit button, so I had added a
> onchange="form.submit()" attribute to every radio button in order to
> trigger a submit as soon as the button was clicked. Apparently,
> calling form.submit() completely bypasses the onsubmit handler set
> for the form, and the Prototype AJAX code was never called!
>
> Now I got it to work by removing the onchange handler from buttons
> and adding a submit button, but this in not exactly what I want. So,
> my question is: is there a simple way to invoke the onsubmit form
> handler from the onchange handler of a form control?
>
>         Ugo
>
>
> --
> Ugo Cei
> Tech Blog: http://agylen.com/
> Open Source Zone: http://oszone.org/
> Wine & Food Blog: http://www.divinocibo.it/
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060412/9fec8d09/attachment.html


More information about the Rails mailing list