Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need help specifying PDF folder location in Javascript

Guest
Jan 19, 2010 Jan 19, 2010

We currently have a bit of Javascript that opens a PDF file when the user clicks the Open PDF button. The script is:

//External link button function                     border=0></a> <script
var ButtonID="PDF1";
var View="User Guides\\WiMAX User Guide.pdf";

document.writeln('<OBJECT CLASSID="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11" ID="'+ButtonID+'" TYPE="application/x-oleobject">')
   document.writeln('<PARAM NAME="Command" VALUE="Shortcut">')
   document.writeln('<PARAM NAME="Font" VALUE="MS Sans Serif,10,0,,">')
   document.writeln('<PARAM NAME="Item1" VALUE=",'+GetCurrDir()+View+'">')
document.writeln('</OBJECT>')

The User Guides folder is within the Help folder where the CHM file is saved (so I have Help (where CHM files are stored)\User Guides (where PDFs are stored).

One of the PDFs is now installed outside the Help folder in a folder that is at the same level as the Help folder. I can't seem to get my updated link to work. Is there a limitation on that requires that the PDF be within the same folder or beneath the folder where the CHM is saved? Is there a way to get this to work?

Thanks.

276
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 20, 2010 Jan 20, 2010
LATEST

Hi,

See http://www.cybertext.com.au/tips_HTML_chm_external.htm, it was written for AuthorIt but it should work for Robo as well. I seems you just need to get the path right, but you may have to amend your script (specifically the function GetCurrDir() ).

Greet,

Willam

This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp