Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2016-08-03 (3 years ago) | | 79% | | Total: 858 | | All time: 4,022 This week: 355 |
|
Collaborate with this project | | Author |
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
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 |
| |
|
|
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.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.