Hi all,
Ive had a look around and cant seem to find it anywhere. Im trying to add a button to the toolbar which will open a Word version of my documentation contents.
Im using flare v4 and my output is webhelp.
Ive tried going to Skins > Styles > ToolbarItem > Add Class > ControlType: Button > OnClick: window.open("../Content/Office Procedures/test.doc")
Im guessing my js coding may need some tinkering.
Any ideas would be appreciated!
Thanks
Con
Adding file output button to toolbar
-
- Jr. Propeller Head
- Posts: 1
- Joined: Tue Dec 09, 2008 4:08 pm
-
- Sr. Propeller Head
- Posts: 159
- Joined: Thu Sep 18, 2008 8:34 am
- Location: "West of the Mississippi"
Re: Adding file output button to toolbar
I have a button to open a PDf of the output. I locate my pdf within my project. If anyone moves it it breaks the link.
window.open("T:/Projects/Global/Content/Resources/VITALXWord.pdf")
Hope this helps.
window.open("T:/Projects/Global/Content/Resources/VITALXWord.pdf")
Hope this helps.
Christy Patton
Technical Communications
MadPak
Flare 6.1
Capture 4.0
Technical Communications
MadPak
Flare 6.1
Capture 4.0
Re: Adding file output button to toolbar
The javascript is fine.randomaccess wrote:Ive tried going to Skins > Styles > ToolbarItem > Add Class > ControlType: Button > OnClick: window.open("../Content/Office Procedures/test.doc")
Im guessing my js coding may need some tinkering.
One thing that would stop this working is having Mark of the Web enabled. Check the Advanced tab in your target, and you need to switch off Insert Mark of the Web.
If you have MOTW on, this affects the security level of your help, and the browser will block opening files like word documents and PDFs.