Relative Content

Tag Archive for pagination

Optimization of a hybrid pagination scheme

I’m working on a Web Application using node.js in which I’m building a partial copy of the database on the client-side to decrease the load on my server. Right now, I have a function like this (expressed as python-style pseudocode, but implemented in JavaScript):

I cannot color the active page number when paginating

I show the data I pulled from the Mysql database as pages. As , I create page numbers according to the number of records and the record to be shown on each page. But I cannot change the color of the active page. And I can’t add forward and back links.