Results 1 to 2 of 2
  1. #1
    JavaNewb is offline Member
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Default Next and Previous Buttons

    Hello all,

    I'm a complete amateur when it comes to coding web pages. I know enough to get into trouble but not enough to do things from scratch. In other words, I've been going to all of the help pages on the net, finding code that is close to what I want, and modifying it to work as I need it. This has served me well enough to get the job done until I let my site grow beyond it's original 5 or 6 pages. Now I'm starting to get quite a few pages going and they all have NEXT and PREVIOUS buttons at the bottom. The problem is, if I want to insert a page between all of the pages then I have to recode the HTML of the following pages to allow for this change in format. When there was only 5 or 6 pages, no problem, but now that I'm getting close to 20+ it's becoming a pain, and I can only imagine how much harder it would be as it keeps growing.

    So I'm trying to be forward thinking here (new concept for me) and find a way to make all the NEXT and PREVIOUS buttons to be sort of dynamic. If someone could point me in the right direction as Google hasn't been much of a help on this one. Basically I want to get rid of page numbers and just name the pages, so if I insert a page it won't matter to the other pages because it will have a unique name. I was thinking of maybe keeping a text file that could be accessed with a list of the names in the order I want them to be displayed. If someone where to come into the middle of the list from whatever website or bookmark, I want them to be able to use the NEXT and PREVIOUS buttons without fail. Any help would be greatly appreciated.

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    What part of the page did you use Java? i guess it should be applet.

    I know enough to get into trouble but not enough to do things from scratch.
    Just Practice.

    I've been going to all of the help pages on the net, finding code that is close to what I want,
    That's what im afraid for. i should practice to be able to get what i want for my project.

    What if what you've looking for is not on the web? or far from what you want? How will you handle this?
    freedom exists in the world of ideas

Similar Threads

  1. Go back to previous page using session in JSP page
    By gopikarikati009 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-23-2011, 10:30 AM
  2. GUI buttons question...
    By glenrowan in forum New To Java
    Replies: 3
    Last Post: 01-18-2011, 05:23 PM
  3. Replies: 2
    Last Post: 08-10-2007, 12:36 AM
  4. Using previous with CardLayout
    By uncopywritable in forum New To Java
    Replies: 2
    Last Post: 08-05-2007, 09:43 PM
  5. Next, Finish Buttons !!!
    By pele in forum SWT / JFace
    Replies: 1
    Last Post: 07-14-2007, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •