W3C home > Mailing lists > Public > www-forms@w3.org > September 2005

Re: How to handle the server response?

From: Allan Beaufour <abeaufour@novell.com>
Date: Mon, 26 Sep 2005 09:23:06 +0200
To: www-forms@w3.org
Message-Id: <200509260923.06954.abeaufour@novell.com>

Sunday 25 September 2005 12:10 skrev Daniel Swarbrick:
> Is it possible to interpret the server response in Javascript from a
> server response after xforms-submit-done?

Not from the event itself, no.

> My intention is to submit data (with replace=none) to a PHP script that
> attempts to insert a record into a database. However, if there is a
> database primary key violation, this needs to be reported to the xforms
> client, and an appropriate error displayed.
> Or am I better to use some "output" tags in my document, and set
> replace=instance and instance=my-output-instance to display anything
> returned from the server upon submit?

That's what I would do.

Allan Beaufour
Novell Denmark
Received on Monday, 26 September 2005 07:23:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC