title: Making an ajax call inside a successful one can be considered bad practice?
body: <p>Let's take the following piece of code:</p>
  
  <pre><code>$.ajax({
      type: 'POST',
      dataType: dataType,
      url: 'someUrl',
      success: function(result){
          $.ajax({
              type: 'POST',
              dataType: dataType,
              url: 'anotherUrl',
              data: queryToSearch,
              success: function(anotherResult){
                  (do something that uses the first one result)
              },
              error: MyObj.defaultAjaxError
          });
      },
      error: MyObj.defaultAjaxError
      });
  </code></pre>
  
  <p>Can this be considered a bad practice? Does it have any hit on performance? If yes, is there a better way to do something like this?</p>