$('#red').smartpaginator({ totalrecords: 100,
recordsperpage: 10,
theme: 'red',
controlsalways:true,
onchange: function(newPage) {
$('#r').html('Page # ' + newPage);
}
});
This demo shows the use of onchange callback, on each page click you'll get the new page no. So, you can pull data from your datasource, probably database or some xml file. Smart Pagination can also filter your data automatically, this is usefull if you only want client side pagination. Obvioulsy this will be suitable only for small data. It also keeps first,prev,next, last buttons always visible using the 'controlsalways' property. Click on Demo 2 to see and example.