March 21st, 2002, 05:30 AM
limiting records for display
I am sending as a parameter a string of comma separated values...
On the receiving page I split the string and display a huge document based on every value....
What I need to achieve is display the document corresponding only the first value, Then click on a next button to display the document corresponding only the Secong value and so on.......
can anyone pl help me out on this???
March 21st, 2002, 01:42 PM
The way I'd do it is to pass another variable (which defaults to zero, so you can start at the begining), then pass the CSV string and the count through as hidden parameters each time you click next. Then you can do and indexOf(",") and substring it recursively based on the counter variable, to get the relevant value for that page. Doing it this way means you can also do a Previous button.