#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    26
    Rep Power
    0

    limiting records for display


    Hi,

    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???

    TIA,
    sands
  2. #2
  3. No Profile Picture
    Java Developer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    5
    Rep Power
    0
    Easy,

    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.

    Oscagne

IMN logo majestic logo threadwatch logo seochat tools logo