title: Cannot get xmlhttprequest.responseText from JQuery
body: <p>I'm newbie with JQuery.</p>
  
  <p>I got this function</p>
  
  <pre><code>function verify_at_bd() {
    var u = "foo";
    var p = "bar";
  
    return $.post('auth.php', {
        name: u,
        password: p,
        mobile: ''
      },
      function(result) {
        return result;
      }, 'json');
  }
  </code></pre>
  
  <p>If I do a <code>console.log(verify_at_bd())</code> I'm getting an xmlhttprequest but cannot access to responseText property. I'm using <code>header("Content-Type: application/json")</code> in the PHP script.</p>
  
  <p>I'm using firefox 3.6 on OS X.</p>