title: Return a Value from Ajax response
body: <p>I have the following function:</p>
  
  <pre><code>    function ProcessFormData(formName, proItem, ctl, method)
      {
      //some operations here
      $.ajax({
              type: "POST",
              url: "CommonControl/GenericProcess",
              data:aData,
              success: function(response){
       //return response;
      } });
  
  var fBar=ProcessFormData(a,b,c,d)
  </code></pre>
  
  <p>How can i return response such that:
  <code>var fBar=ProcessFormData(a,b,c,d)</code> return ajax's success <code>response</code></p>
  
  <p>I have tried all examples provided here to no success.</p>
  
  <p>Thank you</p>