title: Dynamically change PageSize in JTable
body: <p>I'm trying to resize dynamically jQuery JTable in PHP with this code:</p>
  
  <pre><code>$t('#TicketTableContainer').jtable('option', 'pageSize', pageSize);
  $t('#TicketTableContainer').jtable('reload');
  </code></pre>
  
  <p>Where pageSize it's a value that I calculate dinamically when page was resized. 
  For make that I use these functions:</p>
  
  <pre><code>$t(window).resize(function() {
      if(this.resizeTO) clearTimeout(this.resizeTO);
  this.resizeTO = setTimeout(function() {
      $t(this).trigger('resizeEnd');
  }, 500);
  });
  
  $t(window).bind('resizeEnd', function() {
  //do something, window hasn't changed size in 500ms
      console.log('ResizeEnd');
      pageSize = calculatePageSize();
      $t('#TicketTableContainer').jtable('option', 'pageSize', pageSize);
      $t('#TicketTableContainer').jtable('reload');
  });
  </code></pre>
  
  <p>The new pageSize value is calculate only when resize event is ended.
  With this code nothing happen and I don't understand how I can obtain the same effect that JTable offer if pageSizeArea option is enabled and all resize function work dynamically.</p>