Error Handling on JavaScript Submit



We are using LiveCycle ES

We have a regular button within the JavaScript Click event with the code to submit the xml to the server. This all works as expected, but when the user is not connected we are not getting an error. Therefore the user has no idea if the submission was successful or failed. We provide confirmation on a successful submission, but some of our users may not understand that if they dont get a confirmation the submission has failed.