Does any body know how to capture and handle an http response returned after a SUBMIT button transmits XML data? I'm trying to work out a method to quickly deploy short-lived forms that send their data to a lightweight HTTP listener running on the network. Everything was going swimmingly except....
If I use a SUBMIT button, I receive beautiful XML data but the return value from my listener ("Data Received", or "No Data Received", or "Failed to Write Data: notify Administrator", etc.) replaces the form in Acrobat Pro 8 and I can find no way of catching the response, and handling it in a popup window, clearing the form when necessary, etc.
On the other hand, if I use a regular button and the POST() function of FormCalc in the click event, I can easily handle the return value, clear the form when necessary, etc. but I haven't found a way to successfully iterate through the fields, read all the names and values(without knowing them in advance) and send the correct data. using XFA.Layout.pageContent I can iterate through the fields, but all I seem to be able to access is the names, and I haven't a clue how I deal with radio buttons.
Finally, I might be able to make it work with javascript, but there seems to be no equivalent to the POST() function in JavaScript.
If this makes sense, are there any suggestions?