I couldn''t spot anything like this in the API, but have done it myself
on a few occasions by crafting the JS myself. If you want to see
what''s going on, create a normal remote form, grab the JavaScript
Rails puts in the "onsubmit" handler, and have it called from an
onclick handler. The only thing you''ll have to change is that in the
onsubmit the form passes in itself as the form to be serialized, which
won''t work within the scope of the checkbox''s onclick -
instead you''ll
need to pass in the HTML ID of the form.
sam
On 5/11/05, Derek Haynes
<derek.haynes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I noticed on Backpack.com that form input elements (the checkboxes)
> were making remote calls using onClick.
>
> I couldn''t find this behavior in the API - did I miss something or
is
> this just a 37signals addition?
>
> - Derek
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
sam
http://www.magpiebrain.com/