Skip to main content
Known Participant
March 4, 2010
Answered

How to export In-line Javascript to printed documentation?

  • March 4, 2010
  • 1 reply
  • 756 views

Hi Folks,

I am working in Robohelp 8 HTML, and have created these wonderful javascript include files that allow me to generate numbered and bulleted list instructions and insert them into my help guide pages.

Basically, the instructions are the same and repeated throughout guide.  What changes are the field names and numbering sequence.

Ah, you say, why not use snippets for this?  I do use them when the block of information is identical and needs repeating.

Well, my cleverness ended when I started to generate printed documentation and discovered that my in-line javascript inserts and my include files are ignored in the export process.

Examples:

In my HTML Robohelp document, I include a javascript file that contains my procedures and functions.  Then in the HTML document, I insert the call, surrounded by all the necessary <script> wrappers:

document.write(how_to_get_to("Manufacturing,Reports",","));

This produces something like this on the webpage:

Steps

   1. Open the main menu.

   2. Click the Manufacturing folder to expand it.

   3. Double-click the Reports menu item to open the window.

When generated to printed documentation, it is just missing.

Questions:

  1.  Anyone else having the same problem?

  2.  Any creative suggestions on how to generate printed documentation.

I already know I can print from the web page.

Thanks!!

This topic has been closed for replies.
Correct answer Peter Grainge

If I have understood your process correctly, I would say everyone would have the problem. The javascript only runs when you open the topic in a browser. That does not happen when you generate Printed Documentation.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

1 reply

Peter Grainge
Community Expert
Peter GraingeCommunity ExpertCorrect answer
Community Expert
March 5, 2010

If I have understood your process correctly, I would say everyone would have the problem. The javascript only runs when you open the topic in a browser. That does not happen when you generate Printed Documentation.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
marilyngAuthor
Known Participant
March 5, 2010

Thanks Peter,

I pretty much thought that was the case.  Now just trying to figure out a way to insert these numbered, partial lists in the middle of other lists without losing the sequence, and still having them print correctly.

For example:

  1. Here is the first sentence.
  2. This is an instruction that is repeated in a lot of places, but not necessarily the second instruction everywhere.
  3. Here is the third sentence.
  4. This is another instruction that is repeated in a lot of places, but not necessarily the fourth instruction everywhere.

Grasping at straws..

Peter Grainge
Community Expert
Community Expert
March 5, 2010

Have you tried inserting text only snippets into the numbered list? Not sure without testing.

If it doesn't work, you could create the content as user defined variables and insert them as required. That works OK.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.