title: displaying NaN/NaN when result was not found jQuery data tables
body: <p>I have jQuery data tables function I get from another question on SO. Here is the function:</p>
  
  <pre><code>var oTable = $('#test').dataTable( {
      "aoColumnDefs": [
          { "bSortable": false, "aTargets": [ 0 ] }
      ],
      "aaSorting": [[1, 'asc']],
      "iDisplayLength": 1,
      "bInfo": true,
      "fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
         perPage = iEnd - iStart + 1;
         totalRatio = iTotal/perPage;
         intTotalRatio = parseInt(totalRatio, 10);
         totalPages = totalRatio &gt; intTotalRatio ? intTotalRatio + 1 : intTotalRatio;
         currentRatio = iStart/perPage;
         intCurrentRatio = parseInt(currentRatio, 10);
         currentPage = currentRatio &gt; intCurrentRatio ? intCurrentRatio + 1 : intCurrentRatio;
         return ' ' + currentPage + ' / ' + totalPages + ' ';
      }
  });
  </code></pre>
  
  <p>This function is to displaying page/totalpage on pagination. But when I do search on search box, with no record inside the table, the pagination displaying NaN/Nan.</p>
  
  <p>How to keep this pagination still displaying page/totalpage number?</p>