title: How to return value when AJAX request is succeeded
body: <pre><code>   function ajaxRefresh(actionUrl) {
          $.ajax({
          url: actionUrl,
          success: function() {
               return true;
          }});
          return false;
      }
  </code></pre>
  
  <p>The function anyway returns <code>false</code> even when a request is succeeded, becouse the request is asynchronous. How I can return <code>true</code> when request is succeeded?</p>