Here are the instructions I've put in Jmol2.js with  the release of
https://sourceforge.net/projects/jmol/files/Jmol/Version%2014.0/Version%2014.0.7/

Summary:

You should not have to change any of your HTML pages.
You are going to replace Jmol.js, wherever that is, with this file.
You are going to replace all your JAR file with the ones in this
distribution.
You are going to add about 1000 files in the jsmol/j2s directory to your
website.
  Don't worry; only a few will be called. But you won't know which ones.
You will be able to switch from HTML5 to JAVA using ?_USE=SIGNED in the URL

Procedure:

1a) If you want to use HTML5, copy all jsmol/j2s/* files into a j2s
subdirectory in the directory that contains Jmol.js and your old Jmol jar
files.

1b) If you are not using HTML5, change the "use" parameter below from
"HTML5" to "JAVA" and save this file. Copy all the jsmol/java/* files into
the directory containing your current JAR files. This adds four JNLP files
as well and will replace all your JAR files.

2) Rename your current Jmol.js file Jmol_old.js in case you want to undo
this.

3) Concatenate Jmol.min.js if you are not using jQuery (or Jmol.min.nojq.js
if you are) with this file to form a new file (Jmol.min.js first, then
Jmol2.js) and replace your current Jmol.js with it.

4) Try your page and see how it goes. You may still have some problems,
because not all of the methods in the original Jmol.js are included here.
Let me know if that's the case.

If you wish to change the directories your j2s or JAR files and override
the default settings (old JAR file location; j2s directory in the directory
of those JAR files) and thus override your current settings in your HTML
files, then you can to that three ways:

a) You can change the parameters below to override what your pages already
use by uncommenting one or the other of the jarPath and j2sPath
definitions. This will override jmolInitialize in ALL your HTML files.

b) You can change your jmolInitialization call in an individual HTML file.
This sets both the JAR path and the j2s path (as [jarPath]/j2s) together.

c) You can add lines to an individual HTML file along the lines of:

    Jmol.Info.jarPath = "../../Jmol"
    Jmol.Info.j2sPath = "../../JSmol"

   or whatever. This will override jmolInitialize in that specific HTML
file only.

Note that:

 -- FireFox works great. You will be able to read binary files from your
local machine
 -- Chrome can only read local files if started with the
--allow-file-access-from-files  flag
    and even then the files must be ASCII, not binary.
 -- MSIE and Safari cannot work with local pages



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to