Page Templates | Set Up
> Pop-In > Scriptbutton > Widgets | > Path to Jmol > Jmol on your server > Testing locally (no server)

Testing Web Pages Created by Jmol Web Page Maker on Your Local Machine

(Does not work for the ScriptButton template if you use FireFox under MacOSX, works with Safari on MacOSX and FireFox under Linux and Windows. It appears MacOS FireFox is passing absolute instead of relative paths.)

The javascript built into the pages checks to see whether the page is being loaded from a server or the local machine. If it is being loaded from your local machine the path to Jmol used is the relative path specified in the local path text box. The directory containing the page to be tested must be a subdirectory of the one containing the Jmol applet on the local machine. So, to test pages made by Jmol Web Page Maker on your local machine follow the steps below.

1. Create a directory (folder) named something like "tests" inside the directory on your local machine that contains the Jmol applet.
2. Specify the local path to Jmol as "../../" when you create the page in Jmol Web Page Maker.
3. 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.
4. Open the .html file in the browser you want to use for testing. The page should work just like it would on a server.