Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Pagination - Forgot the modulu
In my previous message I posted a code example of how to paginate with
Javascript. I posted an old example without a modulo test. Here is
the code that should be placed directly underneath var recsPerPage =
9; declaration:
var res = <%=count%>%recsPerPage;
if(res == 0){
var numPages = <%=count%>/recsPerPage-1;
} else {
var numPages = <%=count%>/recsPerPage; Received on Fri Dec 21 2001 - 10:38:03 CST