title: update items using jsGrid
body: <p>I wanna use the jsGrid library into my site web, can you help me? I will be very thankful.
  How can I send the updated items to the php code update.php? 
  This is what I have tried but it doesn't work for me. I get white cells: </p>
  
  <pre><code>  updateItem: function(item) { 
       var d = $.Deferred();
         $.ajax({
                  type: "GET",
                  url: "update.php",
                  data:{name:item.name}
              }).done(function(response) {
                  d.resolve(response);
              }).fail(function() {
                  d.resolve(previousItem);
              });
              return d.promise();
      }
  </code></pre>
  
  <p>update.php:</p>
  
  <pre><code>&lt;?php
  include("connexion.php");
  $sql = "UPDATE servers SET name = '".$_GET['name']."' WHERE id = 1";
  if( $result = pg_query($sql))    
  {  
  echo 'Data Updated';  
  }
  ?&gt;
  </code></pre>