Wiki

Clone wiki

jSimple / Home

jSimple

jSimple is a plug in developed by William Rivera for creating sortable paginating tables using the jQuery frame work. In order to use this code you will need to use the jquery library. Currently the Demos in this page use version 1.2.6.

features

  • Table generation
  • Pagination option
  • Table sorting based on DATA
  • Custom sorting support
  • Preserved pagination/sort

Support

  • IE6+ (image support needs included images for 6+7)
  • Firefox
  • Safari
  • Chrome
  • Opera

Here's an example of some code:

var simple = [
	{
		"FirstName": "DAVID",
		"LastName": "BRANDES",
		"Registrater Date": "6/9/2010"
	},
	{
		"FirstName": "DAVID",
		"LastName": "TABBY",
		"Registrater Date": "7/2/2010"
	}
];
$('#table1').Simplify({limit:3,data:simple});

Options

NameTypeDescription
dataObject or Arraythe data to show in a table either using simple or advanced format
limitint [optional]the amount of rows to show on a page, defaults to 20
paginateBoolean [optional]paginate automatically defaults to true
makeSortableBoolean [optional]make it sortable automatically defaults to true

Updated