src code

class method Form.request

Form.request(form[, options]) → Ajax.Request
  • options (Object) – Options to pass along to the Ajax.Request constructor.

A convenience method for serializing and submitting the form via an Ajax.Request to the URL of the form's action attribute.

The options parameter is passed to the Ajax.Request instance, allowing one to override the HTTP method and/or specify additional parameters and callbacks.

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.