I am trying to simulate a post request by creating form elements on the fly and then using the submit() function. I don't know how to capture the response from the server for the post request. I am making a cross domain post request.
Anything after the submit() call does not get executed. How can i capture the response to the submit() call? What is the return value of the submit() function? Any link to the api documentation would be appreciated.