title: Getting ajax post data on success
body: <p>I have the following ajax call. What I would like to do is set the variable "lan_setting" during the ajax requests, and be able to use that variable on success.</p>
  
  <p>In reality I want to set that variable to be post data, which will vary depending on the form input, but as of now I can't even get it working with just this basic example. It just returns "undefined".</p>
  
  <pre><code>_jqXHR = $.ajax({
      url: url,
      data: {lan_setting: 'en'},
      scriptCharset: "UTF-8",
      contentType: "application/x-www-form-urlencoded;charset=UTF-8",
      success: function(lan_setting, data, textStatus, jqXHR) {
          alert(data.lan_setting);    
      }
  });
  </code></pre>
  
  <p>How do I can I use post variable sent via ajax on success?</p>
  
  <p>thanks!</p>