Skip navigation
Currently Being Moderated

RH9: How to troubleshoot Show More | Show Less command in RoboHelp 9

Aug 17, 2012 7:56 AM

Good morning:

 

I inherited a RoboHelp v9 WebHelp Pro project in which the master page includes the follow text/hyperlink.

8-17-2012 10-47-10 AM.png

I think that it's supposed to show more or less drop-down or expanding text. But it doesn't work. Here's what happens:

  1. Click drop-down text.
  2. Click Show Less.
  3. View Script Error:
    • "Unable to get value of the property "indexOf", object is null or undefined.
    • URL: ...... /twisty2a.js

The Baggage files folder includes twisty2a.js, which is included in the Help output folders.

Do I need to modify the "Hyperlink [javascriptvoid(0)]:] to point to the script?

All help, as always, always appreciated.

Carol

 
Replies
  • Currently Being Moderated
    Aug 18, 2012 7:30 AM   in reply to AIR-Chayah

    The name of that file suggests it was probably downloaded from my site, or possibly Willam van Weelden's. Both sites have instructions for using the script.

     

    In each topic the path to the JS file has to be set as I describe. I suspect the problem is that your master page has a path that does not work for the topic.

     

    http://www.grainge.org/pages/authoring/twisty/twisty.htm

     


    See www.grainge.org for RoboHelp and Authoring tips

     

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 18, 2012 9:27 AM   in reply to Peter Grainge

    Given the fact that the file name is twisty2a.js, I believe you use my twisty method that Peter provides on his site.

     

    The following should fix it: On line 55, set the variable OneButtonMethod to false.

     

    Greet,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2012 10:02 AM   in reply to AIR-Chayah

    Hi,

     

     

     

    You must not reference the JavaScript file in the hyperlink, that will trigger the browser to download the file. Read the instructions on setting up the script in Peter’s manual:  <http://www.grainge.org/pages/authoring/twisty/Twisty2a.pdf> http://www.grainge.org/pages/authoring/twisty/Twisty2a.pdf

     

     

     

    When you add the ShowAll/HideAll to the master page, the links will be visible regardless of whether dropdowns/expandspots are used on that page. If you do not want that behaviour, you will need a script to check for dropdowns/expandspots and then show the links.

     

     

     

    Greet,

     

     

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 12:43 AM   in reply to AIR-Chayah

    Hi,

     

    A twisty is the image shown before the drop-down link. The show/hide buttons are the images you use for setting up the show and hide all capabilities.

     

    You can also add the script to the header section of the master page. That way you won't need to reference the script on every topioc separately.

     

    The arrowright and arrowdown are the default image names used for the twisty. You don't need to change them if you don't use twisties.

     

    You can't add the onclick event through the image properties. Go to HTML mode and add an attribute onclick="Code here" to the images.

     

    Greet,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2013 1:01 PM   in reply to AIR-Chayah

    Hi there

     

    You are seeing what I call the "Master Page Conundrum" at play here.

     

    Master Pages are used in two completely different ways.

     

    The first way is similar to using a copier. Imagine you have a form where you want to collect information at some event. So you create the form and it has places for the Name, Address, Phone Number, etc. You place the form inside the copier and make 20 copies. Each copy made looks identical to the other until the areas are completed by the person you handed the form to.

     

    Later it occurs to you that it would be handy to also ask for their email addresses. So you amend the original form. Now those first 20 copies aren't going to magicakally see a new field appear where someone can fill in their email address, right? Only NEW copies made from the amended form will get that. Same goes for Master Pages. The first way they are used is to serve in much the same capacity as the form example. Any changes made to the topic once it has been created aren't reflected in topics that were created from the master page.

     

    The *SECOND* way Master Pages are used is to easily propagate Headers and/or Footers across existing topics. So you set the Master Page up so that it has a Header and/or Footer, then you associate it with as many existing topics as you want in order to give each of these topics the same Header and/or Footer. If you make changes to the Header or Footer in the Master Page, those changes *ARE* reflected in all topics linked to the Master Page.

     

    Hopefully this helps demystify things a bit... Rick

     
    |
    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