title: How can I use an URL obtained through a jQuery.get call to carry out another call?
body: <p>Basically, what I'm trying to do is this:</p>
  
  <pre><code>var mydata = null;
  jQuery.get(ANOTHER_URL, function(data) {
      mydata = data;
  }).then(jQuery.get(parsingFunction(mydata), function(otherData) {/*do stuff with otherData*/}));
  
  parsingFunction(notYetAnURL) {
     /*does stuff with notYetAnUrl*/
     return nowIsURL;
  }
  </code></pre>
  
  <p>The issue is.. this doesn't work. When the second jQuery.get call happens, <code>mydata</code> appears to still be <code>null</code>. I'm new to Ajax and asynchronous programming in general, so I apologize if the question may seem dumb, but I really can't get out of this. Could anybody kindly help?</p>