title: execute a function before dataTable.net draws table
body: <p>I am using <a href="http://www.datatables.net/" rel="nofollow">dataTable.net</a> plugin to draw a table on my html page, It is working fine. I want to execute a function say <code>xyz()</code> which contains a ajax call (ajax call also executing as I want). Before drawing the table I want to execute <code>xyz()</code> function, but it is first drawing table and then executing the function.
  I am calling <code>xyz()</code> as </p>
  
  <pre><code>    $(function () {
      xyz();
  
      // dataTable.net code.
  
      });
  
      xyz()
      {
         $.ajax(
         {
            // some code
         }); 
      }
  </code></pre>
  
  <p>Actually, I am fetching some data from server, and trying to render it to the dataTable.net 
  but dataTable.net is drawing table first and after the ajax call is getting complete, though I am calling ajax before dataTable.net.</p>
  
  <p>Please help me.</p>