title: jquery / ajax - how to read a response from a jquery post() to a webservice
body: <p>I'm trying to send data to a web service using jQuery's <code>post()</code> command - I'm getting a successful response back, I think, but I'm not sure what to use to refer to the data that is returned. Here's my code: </p>
  
  <pre><code>var insertResponse = $.post(
      "https://xxx.com/spark_submit.aspx", 
      { 
          NameFirst: "Joe", 
          NameLast: "Schmoe", 
          PostalCode: "11211", 
          EmailAddress: "joe@schmoe.com",
          Survey: "76:1139" 
      }, 
      function() {
          console.log(insertResponse);
      }).error(function() { 
          console.log("error"); 
      }
  );
  </code></pre>
  
  <p>The <code>insertResponse</code> just returns a massive object including all data related to the processing of the response. I just want the XML that's returned. How can I retrieve it?</p>