On Sat, Jan 18, 2014 at 11:32 AM, Christopher Masi
<cm...@westfield.ma.edu>wrote:
> It appears that Angel’s supposition is correct; that, is using
> var Info = {
> blah: “blah"
> };
> in the header of the html file to set any value means that none of the
> values for things like “j2sPath”, “serverURL”, etc. in the Jmol2.js file
> will be used.
>
Again, there is a bug in that released version of Jmol2.js -- j2sPath and
javaPath and jarFile should have been all commented out and not present in
the first place.
> Thus, if one uses that method for setting values, then all the values need
> to be set that way. On the other hand, it also appears that if one uses
> Angel’s suggesting of setting the values by using syntax like this
> "Jmol.Info.j2sPath = “path-to-j2s/j2s”;” in the html file then the values
> that are specified override any values set in Jmol2.js and all other values
> in Jmol2.js that haven’t been overridden by a similar statement in the html
> file are still used. Thus, it’s may be a good idea to set the path to the
> j2s directory in the html file using the "Jmol.info.j2sPath” syntax since
> not all html files will be in the same location and set every other value
> in the Jmol2.js file.
>
>
With that commenting out change, there should not be any reason to change
the HTML file.
> I reached this conclusion based on the following observations.This is for
> Mac versions of Firefox and Safari with files being served via the loopback
> address to a server on the same Mac as configured by Apple’s server app
> when loading gzipped files.
>
> Works for Firefox and Safari: Do not specify any values for “Info" in html
> file and specify "j2sPath", "serverURL", and "use" in jmol2.js.
>
Do this only if all your HTML files are in the same directory and you do
not use jmolInitialize().
Works for Firefox and NOT Safari: Specify either “use” or “j2sPath" value
> using “var Info = { [etc/]” in the html file and specify “serverURL” in
> jmol2js.
>
I don't think so. This makes no sense. There can't be any Safari issue
here. This is very standard JavaScript.
> Works for Firefox and Safari: Specify “j2sPath” value using
> "Jmol.Info.j2sPath = “path-to-j2s/j2s”;” (see script below) in the header
> of the html file and specify the “serverURL” in the Jmol2.js file
> <script type="text/javascript">
> Jmol.Info.j2sPath = “path-to-j2s/j2s";
> </script>
>
You certainly should not have to do this.
> Works for FireFox and Safari: Specify everything in the html file using
> “var Info ={ [etc]”.
>
>
--
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users