Creating Pagination script.
Trying to do: Displaying 1-10 of 26
The below works except the a2 logic is off if they are on the last age...
thoughts?
//totalRows = all the records.
//pageNum = the current page their on.
//pageSize = how many rows to display per page.
var a1 = (pageSize * pageNum) - pageSize + 1;
var a2 = (pageSize * pageNum) ;
"Displaying " + a1 + "-" + a2 + " of " + totalRows







Bookmarks