title: Understanding done-fail return with jsonp jquery's Ajax
body: <p>I don't understand very well jquery's beahavior with jsonp.</p>
  
  <p>This code provides an alert:</p>
  
  <pre><code>$.ajax({
      url: "http://myUrl",
      cache:false,
      contentType: "application/json",
      dataType:'jsonp'
      }).fail(function() {
          alert(getData());
      });
  </code></pre>
  
  <p>This one does not:</p>
  
  <pre><code>$.ajax({
      url: "http://myUrl",
      cache:false,
      contentType: "application/json",
      dataType:'jsonp'
      }).done(function() {
          alert(getData());
      });
  </code></pre>
  
  <p>Notice that <em>fail</em> is working whereas <em>done</em> is not working...</p>
  
  <p>What did I miss?</p>