SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Pragmatic Programmer halfasleeps's Avatar
    Join Date
    Feb 2006
    Location
    Altoona, PA. USA
    Posts
    1,945
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    adding to back-button histrory?

    is there a way i can add history to the back button?

    so say they are on the same page but the layout of the page keeps changing but the actual page isnt changing. i want to add something in the history so that if they hit the back button it doesnt take them to the actual last page but the perceived last page.

    Thanks
    Altoona Design
    Freelance Flex developer for hire.
    ActionScript Programmer with 8 Years Experience.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,227
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)

    history

    The history object is read-only. So for example if you have a "history" of
    www.google.com
    www.yoursite.com/index.php
    www.yoursite.com/index.php?page=2
    www.yoursite.com/index.php?page=3
    www.yoursite.com/index.php?page=5
    www.yoursite.com/index.php?page=1
    and the user hits the back button from "page1" he may go back to google.
    I think you could add your own "go back" button and do something like
    onclick="history.go('www.yoursite.com/index.php?page=5')"
    that might work - if - they use your scripted button and not the browsers back button.

  3. #3
    SitePoint Enthusiast navtej's Avatar
    Join Date
    May 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by halfasleeps
    is there a way i can add history to the back button?

    so say they are on the same page but the layout of the page keeps changing but the actual page isnt changing. i want to add something in the history so that if they hit the back button it doesnt take them to the actual last page but the perceived last page.

    Thanks
    Hi hal

    In my niew point you should use cokkies , and on back button read the last cookie you wrote , with the parameter written to check the ststus on which page to redirect.

    navtej singh dhillon

  4. #4
    Pragmatic Programmer halfasleeps's Avatar
    Join Date
    Feb 2006
    Location
    Altoona, PA. USA
    Posts
    1,945
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys, im trying to make the back button work like the one at 2advanced.com its a flash site and as your navigate the flash site (which is all one page) the address bar changes adding #description to the end...mine does this too, but on theirs when you hit the back button it takes you to the last #whatever instead of the last page....mine will not take you to the last #whatever but just takes you to the last actual page....ive figured out every aspect of this type of navigation (well in IE im still having problems with FF) accept making the back button work.

    you can also view the page im working on if nescasary http://altoonadesign.com/ad2.php

    thanks
    Altoona Design
    Freelance Flex developer for hire.
    ActionScript Programmer with 8 Years Experience.


Bookmarks

Posting Permissions

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