Paths to the Applet
- Path to Jmol
Applet on Server:
- In
the top text field of the Export to Web (Jmol Web Page Maker) dialog set the relative path on the SERVER (directions to
the directory) to Jmol from the directory that will contain your web
page. Use a "../" for each level you move up in the directory
structure from where your page will be stored followed by names for
each level down. Example:
Jmol applet jar files and Jmol.js are in the directory
"/www/applets/java/jmol" on the server, and you will be creating the
directory "/www/yourname/thispage" to hold the HTML files and other
data files.
The correct path to the Jmol applet is then "../../applets/java/jmol"
(up two levels to the www directory and then down to the jmol
directory).
- Local Path
(used to test the pages on your local machine while developing them):
- In
the second text box of the Export to Web (Jmol Web Page Maker) dialog set the relative path on your computer to the Jmol
applet. This allows you to test the pages without uploading
them
to the server (on Macs you must use Safari for testing because of
security issues). The directory containing the .html file
must be
a subdirectory of the directory containing the Jmol applet.
There
are two ways to do this:
- Simple but inefficient of disk
space. Just put a "." in this field. A copy of the
applet
will be packaged in the same directory as your .html file.
This
means you will have as many copies of the applet on your disk as pages
generated by Jmol.
- More difficult but much more efficient.
- Create a directory (folder) named something
like "tests"
inside the directory on your local machine that contains the Jmol
applet.
- Specify the local path to Jmol as "../../" when
you create the page in Jmol Web Page Maker.
- Copy or move the directory (not just its
contents)
containing the .html, .spt, .png and .js files for the page of interest
into the directory created in step 1.
- Open
the .html file in the browser you want to use for
testing (use Safari on MacOS X as FireFox does not pass relative paths
causing a security error). The page should work just like it
would on a server.
Last Update: July 25, 2008
Expires: --
by J. Gutow