title: Change the number of displayed rows in jQuery datatable
body: <p>Why the number of rows in <code>jquery datatable</code> (see the code below) is not set to 5? It is equal to 10 8as by default). Why <code>'iDisplayLength': 5</code> does not work here?</p>
  
  <pre><code>&lt;script&gt;
  function loadData() {
      $.getJSON(
                'modules/getData.php',
          function(data) {
                    var oTable = $('#newspaper-b').dataTable({
                          "sPaginationType":"full_numbers",
                          "aaSorting":[[3, "asc"]],
                          "bJQueryUI":true,
                          'iDisplayLength': 5,
                          'bLengthChange': false
                    });
  
                    oTable.fnDraw();
  
                    var list = data.flights;
                    var textToInsert = '';
  
                    for (var i = 0; i &lt; list.length; i++) {
                          aux = list[i];
                          textToInsert  += '&lt;tr&gt;&lt;td&gt;';
                          textToInsert  += aux.Var1;                                                                  
                          textToInsert  += '&lt;/td&gt; &lt;/tr&gt;' ;
  
                      }
                    $('table#newspaper-b tbody').html(textToInsert);
  
                }
      );             
  }         
  
  &lt;/script&gt;
  </code></pre>