Configuring a browser to display a local file

A Java applet or Java application can launch a new instance of a Web browser to display a local file. The Z and I Emulator for Web client does this in the following situations:

  • When you are doing a print from a display emulation session (for example, you click File > Print Screen), and:
    • The print destination is a file; and
    • Use Adobe PDF is set to Yes; and
    • View Every File in Browser is set to Yes.
  • When you are running a macro that contains an SQLQuery action, and in the SQLQuery action:
    • Output Result To is set to File; and
    • Show in Web browser is checked.

However, for some browsers, this feature does not work (the new browser instance does not appear) unless you configure the security settings of the browser to allow a Java applet or application to launch an instance of the browser to display a local file.

The following sections describe how to do this configuration for various browsers.

Warning! Be aware that this configuration weakens the security of the workstation, because it allows a program to use the browser to access local files on the workstation.

For Microsoft Internet Explorer 6.0:

  1. Click Tools > Internet Options
  2. Click the Security tab.
  3. Click Trusted Sites
  4. Click Sites
  5. Add the workstation's TCP/IP address (such as 9.22.144.18) to the list of trusted Web sites.
  6. Click OK to close the Trusted sites window.
  7. Click OK to close the Internet Options window.

For Netscape 7.1 and Mozilla 1.x:

  1. Find the file all.js in a subdirectory of the directory in which the browser is installed. Here is a sample path for this file in Netscape 7.1: c:\Program Files\Netscape\Netscape\defaults\pref\all.js
  2. Add the following line to the file: pref("security.checkloaduri", false);
  3. Restart the browser.

Related topics