title: convert a async:false AJAX function into an $.Deferred one
body: <p>I'm struggling now two days trying to convert a simple AJAX function with async:false into a nice jQuery Deferred() one. Everything I tried to return the AJAX response wont work :-(</p>
  
  <p>this is my old (short) version of code:</p>
  
  <pre><code>function uiText($textID) {
     var text = $.ajax({
       url: "uitext.php",
       async: false,
       success: function(response){}
     };
     return text.response;
  }
  console.log(uiText('foo'));  //shows me the response from uitext.php
  </code></pre>
  
  <p>How I can do this with $.Deferred and/or $.when().done()</p>
  
  <p>Thx Mike</p>