hi,
first of all when u go to the page for the first time,get all the resultset
data and store it in a session and from next time onwards only get the data
from the session variable rather than going to the database,
keep 2 variables,start and pageCounter
start indicates the number from which u have to display the page and
pageCounter is the currentPage,
display the rows from start to start+10 times
Recently i got the same problem and now its working fine after doing as per
said above,
revert back if u get more problems
bye
Sowmindra
----- Original Message -----
From: "ankam narahari" <narahari_ankam@y...>
To: "javascript" <javascript@p...>
Sent: Tuesday, April 09, 2002 5:21 PM
Subject: [javascript] want to show 10 images per page in my site
> Hi
> I am developing one jsp page in which i have to
> show 10 images per page, like this I have to show some
> 100 images page by page.
> Now I am able to get all images from database and
> putting first 10 image on page if i click on 'next'
> button I have to call "same page " with next 10 images
> from the record set. I tried this by putting recordset
> in a session variable but its giving problem when we
> press refresh its showing next 10 images without
> pressing 'next' button.
> This is very urgent. please send me solution for
> this problem.
> Thanks with hopes..
> Hari...
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>