Server validation

What is a way of returning validation message from the server to the client? I am using ASP as a backend.

You want to set the dsResponse.status to -4 (the value for validation error status) and set return the error objects as dsResponse.errors.

Here’s an example of an XML response showing a validation error

Do I understand it correctly in order to raise a message on the client I have (using code from example) return an XML string that looks just like the given in example? Another words, if boundForm.validate() recieves an empty string then no message is shown and saveData is processed?

After I added code from the sample, now when I open my page the message: “contacting server” does not go away.

Hi Mark,

Have you resolved this yet?

When I initially open my page the server does not need to return any data. So it returns an empty string. After changing that to return
<response>
</response>
problem disappeared.