Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Pagination - Forgot the modulu

Pagination - Forgot the modulu

From: BL <BrianL722_at_aol.com>
Date: 21 Dec 2001 08:38:03 -0800
Message-ID: <e3a40222.0112210838.3d872dc3@posting.google.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US