Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-18 Thread Christopher Masi
On Jan 18, 2014, at 12:07 PM, Robert Hanson wrote: […] > 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 th

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-18 Thread Robert Hanson
On Sat, Jan 18, 2014 at 11:32 AM, Christopher Masi 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 Jmol

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-18 Thread Christopher Masi
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 fi

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Robert Hanson
You can only load binary files from your local machine if you are using FireFox, I believe. And maybe just on a PC. I can't remember. Any chance that is your problem? What is happening is that your machine does not support asynchronous binary file transfer using AJAX, so it has to go to a server a

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Marcey, David
Bob, Angel, Christopher, Thanks for all your help so far with the gzipped files. Still not working. Any advice would be GREATLY appreciated. Thanks in advance, David Here is what I’ve done (thanks Bob, for these instructions): 1. Opened JSmol.min.js and added js/Jmol2.js to it. 2. Saved

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Angel Herráez
Hi Chris Uff that's complex to diagnose. I'm not sure what is going wrong; it does sound reasonable. I wold try to pool data and avoid defining Info values in two places. I.e., move all declarattion into Jmol2.js or (less likely) into the page Or, at least if unavoidable, don't declare var

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Christopher Masi
Angel, Yes, I think I’m calling the JSmol.min.js file first. In the header of the html page, I’ve got this var Info = { j2sPath: "../../reuse/j2s", use: "HTML5" }; Jmol._al

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Robert Hanson
Good sleuthing. I have added serverURL to the default Info block in Jmol2.js and added a comment about it there. If you can avoid making any changes to JSmol.min.js, that's wise. A real headache to maintain if you do. I don't recommend making this entry relative unless you are absolutely certain

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Angel Herráez
Chris, are you calling Jmol2.js before or after JSmol.min.js? That could be a reason for parameters not being applied. JSmol.min.js includes some defaults. I think you need Jmol2.js after it. -- CenturyLink Cloud: The

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Christopher Masi
David, Found it… Warning: I have no idea what I’m doing, and I could be breaking everything. By trial and error I discovered the following: I couldn’t get gz file download to work by putting anything in the jmol2.js file. I thought the “serverURL" belonged between lines 38 and 37, but that di

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Angel Herráez
Hi David Jmol2.js has this: Jmol.Info = { // overrides jmolInitialize() //jarPath: "java", //jarFile: "JmolAppletSigned0.jar", //j2sPath: "j2s", use: "HTML5", // could be JAVA or HTML5 disableJ2SLoadMonitor: false, disableInitialConsole: true } You need this: [...] use: "HTML5", serverURL: "ph

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-16 Thread Marcey, David
gt;" mailto:jmol-users@lists.sourceforge.net>> Date: Friday, January 10, 2014 at 10:21 AM To: "jmol-users@lists.sourceforge.net<mailto:jmol-users@lists.sourceforge.net>" mailto:jmol-users@lists.sourceforge.net>> Subject: Re: [Jmol-users] Problem with JSmol 14.0.4 and g

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-10 Thread Christopher Masi
In another e-mail thread, Otis Rothernberger suggested this script Jmol._alertNoBinary = false; jmolApplet0 = Jmol.getApplet("jmolApplet0", Info); to get rid of the error message mentioned below, and it worked. Thanks Otis, Chris On Jan

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-10 Thread Christopher Masi
Angel, Thanks. On Jan 10, 2014, at 10:28 AM, Angel Herráez wrote: > Hello, Chris > > A few things to check: > > 1- Have you pointed to the jmol.php file in your own server? No, I hadn’t. Now my header looks like this var Info = {

Re: [Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-10 Thread Angel Herráez
Hello, Chris A few things to check: 1- Have you pointed to the jmol.php file in your own server? That is specified in definition of the "Info" variable of J(S)mol, either in your own page or in the Jmol2.js file. As far as I know, loading of binary files relies of that php file and it must be

[Jmol-users] Problem with JSmol 14.0.4 and gzipped files

2014-01-10 Thread Christopher Masi
I’m having trouble getting jsmol to work with gzipped files. I’ve downloaded jmol 14.0.4, and I’m using the Jmol2.js library (is “library" the right descriptive name for that file?). I’m serving the files using apache, as configured by Apple’s Mavericks “Server” app, to myself and I’m accessing