$('myform'). {
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
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
Mit freundlichen Grüßen
Siegfried Puchbauer
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs