The xforms-submit-error event

Release 2.0 - ...

Dispatched as an indication of: failure of a submission process.

Event Properties

Event Properties Value / Description
Target submission
Bubbles Yes
Cancelable No
Context Info
  • error type (string) : One of the following: submission-in-progess, no-data, validation-error, parse-error, resource-error, target-error.
  • resource-uri (string) : The submission resource URI that failed.
  • response-status-code (number) : The protocol return code of the error response, or NaN if the failed submission did not receive an error response.
  • response-headers (node-set) : Zero or more elements, each one representing a content header in the error response received by a failed submission.
  • response-reason-phrase (string) : The protocol response reason phrase of the error response (if any).
  • response-body (string or node-set) : When the error response specifies an XML media type, the response body is parsed into an XML document and the root element of the document is returned. If the parse fails, or if the error response specifies a text media type (starting with text/), then the response body is returned as a string. Otherwise, an empty string is returned.

The default action for this event results in the following:

  • None, notification event only.

Specification

Link to the XForms specification: the xforms-submit-error event.