oh, I didn't see the Form object. Yes, that'll do it. Thanks Siegfried!
On 3/9/06, Siegfried Puchbauer <[EMAIL PROTECTED]> wrote:
> you have to do smth like this
>
> $('myform').onsubmit=function(evt) {
>
> var form = $('myform');
>
> new Ajax.Request(form.action, {
> method: form.method,
> parameters: Form.serialize(form),
> onSuccess: updateFunction
> });
>
> Event.stop(evt);
> return false;
> }
>
> have a look at
> http://www.sergiopereira.com/articles/prototype.js.html for
> the whole list of options
>
> hth
>
>
> On 3/9/06, Ben Anderson <[EMAIL PROTECTED]> wrote:
> >
> Hi,
> Is it possible to submit my form (or part of my form) with an ajax
> request? I had been using dojo to do this, but having just read up on
> the prototype library, I think I'd rather use prototype. The one
> thing I don't see (maybe I'm just missing it) is the ability to submit
> my form (actually just parse through an element and include all inputs
> as request parameters) with my request. Can I do this?
> Thanks,
> Ben
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
> --
> Mit freundlichen Grüßen
>
> Siegfried Puchbauer
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs