title: ajax reload for datatable not working
body: <p>I have been trying to reload jQuery Datatables for every 10 seconds, but I get an issue as mentioned below.</p>
  
  <p>Below is the code:</p>
  
  <pre><code>$(document).ready(function(){
      var table1=$('.MessagingTable').DataTable({
      }); 
  
      setInterval(
          function(){
              table1.api().ajax.reload(); 
          }, 
          10000 
      ); 
  }); 
  </code></pre>
  
  <p>It throws:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Object [object Object] has no method 'api' </p>
  </blockquote>