JAVA Tech VERSION 3.0 manual ViewONE Pro, Mayscript parameter, Apple Macintosh users JavaScript

Models: VERSION 3.0

1 88
Download 88 pages 5.41 Kb
Page 10
Image 10

ViewONE Pro

If you have downloaded ViewONE Pro (with or without the Print Accelerator, Annotations, DjVu, PDF or other optional modules), then to use ViewONE Pro on your web site, setup a web page containing the following HTML…

<APPLET CODEBASE = “.”

ARCHIVE = “ViewONE.jar” CODE = “start.jiViewONE.class” NAME = “ViewONE”

WIDTH = “100%”

HEIGHT = “97%” HSPACE = “0” VSPACE = “0” ALIGN = “middle” MAYSCRIPT=”true”>

<PARAM NAME=“cabbase” VALUE=“ViewONE.cab”> </APPLET>

In each case, you must change the “codebase” value to point to the location of the ‘v1files’ directory that contains ViewONEs resource files (i.e. ji.jar, ji.cab and other .v1 files).

The codebase parameter specifies the location of the ji.jar, ji.cab and other files relative to the location of the HTML page. So in this case it specifies the “current directory” which is “.”

(Note: PARAM NAME=cabbase” is required for Microsoft Explorer users).

Our downloadable demos include examples to assist you.

Mayscript parameter

When using JavaScript it is important to include the MAYSCRIPT parameter (see both HTML samples above). This parameter is an enabler for the JavaScript interface. Without it, calls to JavaScript will not work.

Apple Macintosh users (JavaScript)

Depending on the version of the operating system used by Apple Macintosh computers, JavaScript may or may not operate correctly.

Apple MacOS 8 and 9 computers utilize Apples Java engine known as MRJ (Macintosh Runtime Java). This particular Java engine did not have full support for JavaScript to Java Applets and so the JavaScript API will not operate with MRJ.

Apple MacOS X (10.x) computers utilize Apples updated Java 2 engine which does include support for JavaScript to Java API’s.

10

Page 10
Image 10
JAVA Tech VERSION 3.0 manual ViewONE Pro, Mayscript parameter, Apple Macintosh users JavaScript