Copy link to clipboard
Copied
I have tried achieving this using the toolbarscripts01.js created by Willem Van Weeden on Peter Grainge's site. I've implemented .js in the skin for use with PDFs before, so I'm pretty sure I'm doing it right, but on click, nothing happens, when it should print. Script and instructions can be found here.
http://www.grainge.org/pages/authoring/twisty/twisty.htm
I'm using RH10 and outputting WebHelp.
I should also mention that I first tried the method called Print Button for WebHelp on this page, but it didn't work either.
http://www.grainge.org/pages/snippets/snippets.htm#print
Has anyone else successfully created a print topic button in the skin nav bar? Any suggestions for alternatives or what I might be doing wrong?
For now duplicate what is in the download and don't use a custom image. Logic dicatates there has to be a difference and you need to avoid any you know about.
Have you added the js file to baggage?
Create a brand new project and go through it line by line. If that fails, see the Contact page on my site and send the new project.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Neither of the scripts would be there unless they had been tried first.
The first one has a Rh project set up that you can download. First please try that and confirm that it is working there.
Are you testing on generated output rather than preview?
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
I just compared the project files from the download against what I had done in my own project. They are identical. The only difference was that I had chosen a custom image. So I chose none for image and just used text, as in the example project. But the results were the same.
The project download does work when I generate output. RH10 upgraded the project files for me when I opened the project.
I am testing on generated output and not on preview.
I don't know what I could be doing wrong. I see nothing different
Copy link to clipboard
Copied
For now duplicate what is in the download and don't use a custom image. Logic dicatates there has to be a difference and you need to avoid any you know about.
Have you added the js file to baggage?
Create a brand new project and go through it line by line. If that fails, see the Contact page on my site and send the new project.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
And are you tesing locally installed WebHelp on Chrome? Chrome will block that button locally too. (Even with RH10.)
Greet,
Willam
Copy link to clipboard
Copied
Peter, you found the problem. I had copied the js file into the directory instead of adding it to the baggage files via RH UI. Thanks for catching that. A good lesson to learn for other future work, too.