W3C home > Mailing lists > Public > public-xformsusers@w3.org > April 2014

xforms-submit-error

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Wed, 16 Apr 2014 14:55:47 +0200
To: "Forms WG" <public-forms@w3.org>
Cc: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.xeet69dlsmjzpq@steven-ux21a>
Erik's recent message reminded me of an issue I have with the  
xforms-submit-error event.

Currently the default action for a submission error is to do nothing:
https://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_xforms-submit-error_Event

	Default Action: None

This seems to me to be terribly user-unfriendly. Nothing happens, and it  
is hard to find out what's (not) happening.

I would like to propose that the default action be a message, with  
relevant context information, such as:

	Submission failed

	error-type: result-media-type
	error-message: application/pdf
	resource-uri: http://example.com/submit

(Of course, an implementation could make this even friendlier

	Submission Failed

	Submission to "http://example.com/submit" failed, with error-type  
"result-media-type".
	This means the server sent data of a type that cannot be processed. The  
type reported was "application/pdf".
)

Steven
Received on Wednesday, 16 April 2014 12:56:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:43 UTC