title: Problem with JS jQuery AJAX
body: <p>i have a problem with my code.</p>
  
  <pre><code>function fnFormatDetails ( oTable, nTr )
  {
      var aData = oTable.fnGetData( nTr );
      var sOut = "";
  
      var ajax = $.ajax({
          url: "/wemi/mediaplaner/show?id="+aData[1],
          success:    function(data)  {
              //return data; 
              //return sOut = data;
              //console.log(sOut);
          },
          error:  function()  {
              //alert("Error");
          }
      });
  
      //document.write(ajax.responseText); //write empty Text
      console.log(ajax); //Real Object all is OK
  
      //console.log(ajax.responseText); get empty Text
      //alert(ajax.responseText); // get Empty Text
      return sOut;
  }
  </code></pre>
  
  <p>I just need to print the ajaxed text... and as you can see i get only undifined or empty response.</p>
  
  <p>but if i print or alert in success function, all is Ok and i get my response...</p>