Testing Pages Created by Jmol Web Page Maker without a Server
How you do this depends on what you set the local path to when creating the page.
- The local path was set to "." when the page was made: just 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.
- The local path was set to "../../" or something else when the page was made:
- Copy or move the directory (not just its
contents)
containing the .html, .spt, .png and .js files for the page of interest
into the testing directory you created
in the same directory as the Jmol applet. If you chose a
different path you will have to figure out where to put the files for
testing. The most important constraint is that the files for
testing must be below the Jmol applet in the directory tree.
- 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.
- 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.
- Testing Directory: 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