Re: How to handle the server response?

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