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 :-(
this is my old (short) version of 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
How I can do this with $.Deferred and/or $.when().done()
Thx Mike
 
    