nrsTable 0.3.3 review
DownloadnrsTable library is a JavaScript script that will allow a developer to create HTML tables from arrays. The tables can be automatical
|
|
nrsTable library is a JavaScript script that will allow a developer to create HTML tables from arrays.
The tables can be automatically sorted simply by clicking on the heading. A lot of customization can be done for the tables, such as colors, pages, captions, and more.
The following are some examples of how nrsTable can be used to make dynamic tables. Now, I have already entered the script declaration, which looks like:
< script type="JavaScript" src="nrs_table.js" >< /script >
In the head of this page. Now we can create different examples. Note that each table must have its own, unique id in order for this to work.
I'll also be using the same dummy data for all the tables, since I don't feel like writting more than one example.
The dummy data will look like this:
< script language="JavaScript" src="nrsTable.js" >
var header = new Array("First Name", "Last Name", "Income", "Date Hired");
var data = new Array( new Array ( "Joseph", "Smith", "$35,000", "2000"),
new Array ( "Aaron", "Zelzet", "$45,000", "1997"),
new Array ( "Michael", "Doe", "$55,000", "1965"),
new Array ( "Cindy", "Perez", "$44,345", "2004"),
new Array ( "Robert", "Williams", "$48,234", "1990"),
new Array ( "William", "Cohen", "$12,234", "2005"),
new Array ( "David", "Gross", "$34,563", "1998"),
new Array ( "Linda", "Mendez", "$46,975", "1988"),
new Array ( "Karen", "Anderson", "$124,345", "1978"),
new Array ( "Veronica", "O'Reiley", "$89,034", "1968")
);
< /script >
What's New in This Release:
A small bug that would skip displaying a row at the beginning of a table was fixed.
This was only the case in IE.
nrsTable 0.3.3 search tags