Skip to main content
The_Real_Mike73
Inspiring
May 28, 2010
Question

Can't access JS file on LAN from Air

  • May 28, 2010
  • 1 reply
  • 539 views

RoboHelp HTML 8.0.2.208

In the default page of the help project, I need to include a javascript file that is on a file server on the LAN.  When I test the page with the preview button, everything works fine, but when I compile the Air help, it can't access the JS file.

I've tried both of the following methds to include the file:

<script type="text/javascript" src="\\lan.local\folder\folder\folder\folder\file.js"></script>

<script type="text/javascript" src="file://lan.local/folder/folder/folder/folder/file.js"></script>

Both methods work in the preview, but not in the compiled help.

Why don't I just include the JS file in the project?  The purpose of the file is to test if the user has LAN access.  So the file has to be on the LAN outside of the help.

Thanks in advance for any help

    This topic has been closed for replies.

    1 reply

    The_Real_Mike73
    Inspiring
    May 28, 2010

    I found the answer:

    "HTML pages in the application sandbox cannot use the script tag to load JavaScript files from outside  of the the application directory. "