Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can I do this with History.go?

    Hi all, first post and a bit of a newb, so please be gentle

    I have a file that generates web galleries in Adobe Lightroom. They are generated depending on which files are selected and the metadata in those files.

    Basically it is a series of pages of thumbnails called index.html index_1.html index_2.html etc.

    Then a set of pages for each individual image.

    An example can be seen here: http://68.169.32.107/jonrouston/clients/su-dathan/ (the page navigation links are not great, but I have addressed that, they're at the bottom >> )

    Currently if a user clicks on a photo there is a 'return to thumbnails button at the top, but this always takes them to /index.html

    So the user could be at a picture after browsing to /index_39.html and still get returned to /index

    Is there any way I can use history.go to find the last instance of index.html Or index_x.html (where x is any number) and take them back to that instead?

    Thanks for any help

    Jon

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    Try

    <INPUT TYPE="button" VALUE="Go" onclick="history.go(-1)">

    should take to last page you were on.


  •  

    Posting Permissions

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