title: Updating Pagination for polling with dataTables object
body: <p>I am using the latest DataTables, however I have not updated my code to use the new API... I am still using the Hungarian notation! I don't mind if answers use the new methods and notation, but I just wanted to frame the context of the question. ;)</p>
  
  <p>I have the potential on a page to have several DataTables, each of them updating every X seconds. For this reason, I basically keep track of my own array of DataTables so that I can call fnDraw on them at the polling interval.</p>
  
  <p>So, on initialize I do something like this:</p>
  
  <pre><code>pollObj[0] = $('#myTable').dataTable(options);
  </code></pre>
  
  <p>Then every X seconds, the table gets redrawn thus:</p>
  
  <pre><code>pollObj[0].fnDraw(false)
  </code></pre>
  
  <p>The problem is that since the initialization parameters are cached, the DataTable is losing track of its <code>iDisplayStart</code> and setting it back to 0 each time. If I'm at page 5 when the polling interval comes around again, it redraws the table back at page 1.</p>
  
  <p>How can I get it to remember my <code>iDisplayStart</code>? In other words, how can I modify the <code>pollObj[i]</code> after a page change (draw) so that the next time <code>fnDraw</code> is called on it, the new value gets used? I found the <code>fnSettings</code> method, but there doesn't seem to be a setter. Or is it just <code>fnSettings()._iDisplayStart = x</code>?</p>
  
  <p>I've noticed that in <code>fnDrawCallback</code>, if I log the oSettings after manually selecting a new page, I get an integer > 0 (for example, 40 when I'm on page 5).</p>
  
  <p>Can I just take that whole of <code>oSettings</code> in the fnDrawCallback and apply it back to the cached <code>pollObj[i]</code> settings somehow?</p>
  
  <p>(the tricky part will be finding the 'i' at that point, but that's a different story...)</p>