Re: How to handle the server response?

>I still think your suggestion is a good idea, but it seems that
>Mozilla's XForms client doesn't consider a 404 to be a submit error.

Hi Daniel,

You are right, Mozilla doesn't handle the http failures in the way
described by Mark, even though we thought that we did :=).
We have opened up a
bug(https://bugzilla.mozilla.org/show_bug.cgi?id=310125)
to address this issue.  Reading the spec, specifically 11.1 #5, it
certainly appears that
processors should dispatch a xforms-submit-error event in the case of
any 4xx and 5xx http response.  "For an error response nothing in the
document
is replaced, and submit processing concludes after dispatching
xforms-submit-error."
But like you noticed in Mozilla, it doesn't seem like other processors do
this for 404 responses, either.

Hopefully this thread will be discussed by the WG and the different
implementors so that we can get a nice, consistent behavior across
all platforms.

Thanks for pointing this out.

--Aaron

Received on Wednesday, 28 September 2005 01:06:10 UTC