PHP AJAX Table: Load HTML tables dynamically using AJAX

Recommend this page to a friend!
  Info   Documentation   Demos   View files (25)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
79%Total: 865 This week: 1All time: 4,007 This week: 255
Version License PHP version Categories
ajax-table 1.0.1MIT/X Consortium ...5.4HTML, Localization, PHP 5, AJAX
Collaborate with this project Author

ajaxtable - github.com

Description

This package can load HTML tables dynamically using AJAX.

First it can generate JavaScript data to configure a jQuery plugin to build a table from configuration objects that define the tables rows and columns.

The jQuery plugin will perform AJAX requests to retrieve the table data and package classes generate the response with values to display on the table from data passed to the classes.

The package can also generate LIMIT clause for pagination and so only show the results for the current table page, as well ORDER BY clause to show the table data according to the column that the user picked to sort.

The presentation of the table can be configured with CSS styles.

The texts used in pagination links and other messages can be translated to multiple languages.

Innovation Award
PHP Programming Innovation award winner
June 2016
Winner


Prize: One big elePHPant Plush Mascott
Many applications need to display listings on Web pages. Those listings often appear as HTML tables split in multiple pages according.

The typical way to display these listing tables is to show links to go between pages. However, reloading the whole listing pages when the user clicks on the navigation links may be slow.

A better alternative is to use AJAX requests to retrieve only the part of the listings that changed. That is better but if you send the whole listing table HTML to the browser, it may be way more information than it is needed because the whole HTML markup will need to be sent too.

This package provides a better alternative that consists in sending initially the skeleton of the table. Then the class can send just the information of the table cells without the whole HTML markup.

This way it can increase the speed of the table listing update.

Manuel Lemos
Picture of Joubert RedRat
  Performance   Level  
Name: Joubert RedRat <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: ???
All time rank: 2255155 in Brazil Brazil
Week rank: 259 11 in Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details

AjaxTable

AjaxTable is PHP and JavaScript library to build tables with ajax to get and display data. Different from another js plugins, AjaxTable build all table data and send to view, so javascript not be heavy on your page.

AjaxTable support pagination, responsive, i18n and more. You can change style, add html classes, change strings in your Language class and more.

Want to see more? We have a demo here.

Requeriments

  • PHP 5.4 or later
  • jQuery 1.6 or later

Install

1 - For install, you can use composer as below

composer require vectordev/ajaxtable

or download tarball and include autoload.php in your code as require.

2 - Copy all files on js and css folder to your assets folder and include in your page.

Usage

To see this library in action, see usage.md.

  Demo  
  Files  
File Role Description
css (4 files)
examples (3 files)
js (2 files)
src (7 files, 2 directories)
composer.json Data Auxiliary data
LICENSE Lic. Auxiliary data
README.md Doc. Documentation
usage.md Doc. Example script

  Files  /  css  
File Role Description
   ajaxtable-responsive.css Data Auxiliary data
   ajaxtable-responsive.min.css Data Auxiliary data
   ajaxtable.css Data Auxiliary data
   ajaxtable.min.css Data Auxiliary data

  Files  /  examples  
File Role Description
   index.php Example Example script
   numbers.php Example Example script
   numbers.sql Data Auxiliary data

  Files  /  js  
File Role Description
   ajaxtable.js Data Auxiliary data
   ajaxtable.min.js Data Auxiliary data

  Files  /  src  
File Role Description
Format (3 files)
Lang (2 files)
   autoload.php Aux. Auxiliary script
   Cell.php Class Class source
   Col.php Class Class source
   Column.php Class Class source
   Conf.php Class Class source
   Response.php Class Class source
   Row.php Class Class source

  Files  /  src  /  Format  
File Role Description
   Classes.php Class Class source
   Format.php Class Class source
   Table.php Class Class source

  Files  /  src  /  Lang  
File Role Description
   Lang.php Class Class source
   PtBr.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 0%
Total:865
This week:1
All time:4,007
This week:255
User Ratings User Comments (4)
 All time
Utility:100%
Consistency:100%
Documentation:91%
Examples:100%
Tests:-
Videos:-
Overall:79%
Rank:39
 
Thats a very good classe ;-)
4 years ago (Josť Filipe Lopes Santos)
80%
Thats a very good classe ;-)
4 years ago (Josť Filipe Lopes Santos)
80%
Thats a very good classe ;-)
4 years ago (Josť Filipe Lopes Santos)
80%
Thats a very good classe ;-)
4 years ago (Josť Filipe Lopes Santos)
80%
 

For more information send a message to info at phpclasses dot org.