title: handsontable: inserting data using ajax
body: <p>I can't find the right way for inserting data in a handsontable
  table using $.ajax function with jquery.
  Is there any helpfull tutorial or example on this?</p>
  
  <p>Many,many thanks!!</p>
  
  <hr>
  
  <p>Thanks for the example, but I'm not capable of pushing a PHP array to handsontable via json
  (using PHP::json_encode()).
  I tried a lot, but finally it didn't work...</p>
  
  <p>For example: I got a few arrays with rows:</p>
  
  <pre><code>&lt;?php
          $row1 = array(1=&gt;"value1",
          2=&gt;"value2",
          3=&gt;"value3",
          4=&gt;"value4",
          5=&gt;"value5");
  
      $row2 = array(1=&gt;"value1",
          2=&gt;"value2",
          3=&gt;"value3",
          4=&gt;"value4",
          5=&gt;"value5");
  
      $row3 = .......
  </code></pre>
  
  <p>so I tried:</p>
  
  <pre><code>$data = array($row1,$row2,$row...);
  echo json_encode($data);
  </code></pre>
  
  <p>but it doesn't work at all...</p>
  
  <p>Thanks for the help!</p>