Skip navigation
Currently Being Moderated

Toolbar Navigation - Previous/Next button enhanced script

Nov 19, 2013 3:23 PM

Tags: #next_button #browse_button #toolbar_button

I've found a few topics on how to add the standard skin back/next script to a skin, for that I thank everyone.  I would like to take it to the next level and make it behave even more like browser buttons meaning when a user has never navigated to a 2nd topic the Back button is unavailable (gray), when they have navigated to multiple topics the button is available (blue). Same for the next button.

 

Standard script:

For back:

javascript:history.go(-1);

 

For next:

javascript:history.go(1);

 

Any ideas?

 

I believe I saw it somewhere before and now I can't find it.

 
Replies
  • Currently Being Moderated
    Nov 19, 2013 10:29 PM   in reply to dh2help4289

    This requires you to sniff the browser's history. And most browsers see

    this as a security threat so they have blocked that. The followig thread

    has some suggestions to get this working:

    http://stackoverflow.com/questions/3588315/how-to-check-if-the-user-ca n-go-back-in-browser-history-or-not

     

    Greet,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 20, 2013 11:09 AM   in reply to dh2help4289

    Hi there

     

    When you say: This is being used in a CHM that was converted from a Webhelp in RH10, does that mean you are using the feature in RH10 where you are now able to use the CHM as a wrapper in order to present a single .CHM file that presents a skinned WebHelp?

     

    Or are you instead saying that you are now creating CHM output and used to create WebHelp?

     

    Cheers... Rick

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 20, 2013 11:19 AM   in reply to dh2help4289

    You can try, but I don't give you much chance. CHM uses IE under water

    and security is possibly even stricter in a CHM than on a regular site.

     

    Greet,

     

    Willam

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points