title: Understanding jQuery's jqXHR
body: <p>I have a set of <code>$.get()</code> requests that I need to refactor to include a failure callback.  The requests are of the form</p>
  
  <pre><code>$.get(url,
        {},
        function(data) {//success, do work
        //work
        },'json');//or 'html'
  </code></pre>
  
  <p>According to the jQuery API, I simply add a jqHXR object.  So in my case, I believe I should do</p>
  
  <pre><code>var jqxhr =  $.get(url,
            {},
            function(data) {//success, do work
            //work
            },'json').error(function() { alert("error"); });//or 'html'
  </code></pre>
  
  <p>I don't understand the reason for the second success callback in <a href="http://api.jquery.com/jQuery.get/">the example</a>.  I suppose it could be there for setting up a callback chain.  I want error to execute in error, and success to execute on success.  So, is this correct?  </p>