Hi all,
I have created jsp pages which dynamically diplays 9 pictures per page. Now the user wants to have something like (Pic 1-9 of 48 Total) on the page. Can someone tell me how I can do this.
I have <%=pageIndex%> (starts with 0) which gives me the page I am currently on and <%=size%> (48 in this example) the total no of pics.
For e.g if <%=pageIndex%> is 0 then the text should day (Pic 1-9 of 48 Total)
if <%=pageIndex%> is 1 then the text should day (Pic 10-18 of 48 Total)
if <%=pageIndex%> is 2 then the text should day (Pic 19-28 of 48 Total)
Since the <%=pageIndex%> changes based on pagination and the <%=size%> being the same, can someone tell me if this can be achieved through Javascript?
Thanks and regards.
I have created jsp pages which dynamically diplays 9 pictures per page. Now the user wants to have something like (Pic 1-9 of 48 Total) on the page. Can someone tell me how I can do this.
I have <%=pageIndex%> (starts with 0) which gives me the page I am currently on and <%=size%> (48 in this example) the total no of pics.
For e.g if <%=pageIndex%> is 0 then the text should day (Pic 1-9 of 48 Total)
if <%=pageIndex%> is 1 then the text should day (Pic 10-18 of 48 Total)
if <%=pageIndex%> is 2 then the text should day (Pic 19-28 of 48 Total)
Since the <%=pageIndex%> changes based on pagination and the <%=size%> being the same, can someone tell me if this can be achieved through Javascript?
Thanks and regards.