Skip to main content
Douglas_Campbell
Inspiring
November 14, 2012
Answered

Open link (PDF) in new window from WebHelp custom skin button

  • November 14, 2012
  • 1 reply
  • 2006 views

This question relates to my work with FM>RH integration. But the task I'm trying to accomplish is something specifically done in RH with customization of WebHelp skins, so I'm posting in this forum. I'm running RH9 on Windows XP Pro.

We have recently replaced WebWorks with RH and finally have the mapping files set up to generate Help from our FM source files. Celebration was short, because then we realized that our users wanted a PDF option. We haven't done any mapping to create PDFs from RH, and that seems kind of silly anyway, since we have superior PDF generation from the FM files.

So I set about making a custom button in the header of a WebHelp skin that will link to a PDF. I accomplshed that work, but its behavior falls short of the functionality I'd like to see. Currently, you click on the button and it opens the PDF in the browser window of the Help system. I want it to open in a new window, so I can keep the experience clean for the users, separating Help and PDF. I don't know if this is possible.

Here is where I am at. To create button I navigated to:

Project Set-up/Skins/NEW SKIN/WebHelp Skin Editor/ Main/NEW BUTTON

When I choose the edit icon to customize the new button, there is an option to choose Link or JavaScript. I got the PDF to open inside the Help browser by just using the Link option and specifying the PDF. I have tried to use the JavaScript option without success. My JS may be wrong, but when I choose inline JS option and place anything there, it turns all the navigation buttons to gobbledy gook. Specifying an external JS file doesn't work at all.

Any direction or help would be appreciated.

Thanks,

Douglas

This topic has been closed for replies.
Correct answer Willam van Weelden

Hi there

I believe this is documented in my Skinny on Skins file available at:

RoboWizard.com

Cheers... Rick


Hi Rick,

I do believe you've added it, but it's a bit hidden. To get it working, you need to use the window.open method: http://www.w3schools.com/jsref/met_win_open.asp

In the onclick, add: window.open('url_to_pdf','','width=500,height=500');

Greet,

Willam

1 reply

Jeff_Coatsworth
Community Expert
Community Expert
November 14, 2012

Have a search in the RH forums on PDF links - there have been a few discussions recently on adding a button to launch PDFs.

Douglas_Campbell
Inspiring
November 14, 2012

I've taken a look around and don't see anything that is helpful. The results were very limited and didn't address what I was trying to achieve specifically. Any other advice?

Captiv8r
Legend
November 14, 2012

Check Willam van Weelden's site? (www.wvanweelden.eu<http://www.wvanweelden.eu>) - he's a scripting guru


Hi there

I believe this is documented in my Skinny on Skins file available at:

RoboWizard.com

Cheers... Rick