Annemarie Honegger wrote:

 > Hi, and thanks for your help!
 >
 > Well, when I was searching for a way to run my jmol pages locally, I 
found the instructions
 > in the jmol wiki 
http://wiki.jmol.org/index.php/Jmol_Applet_Deployment_Local  and after
 > some trying around with the proposed methods, decided to use method 
c, using
 >
 > jmolInitialize("../../Jmol",window.location.protocol == "file:");

Hmm. I'm not aware of this as a recommendation and would have to suggest 
not doing this. It's saying that we either have

jmolInitialize("../../Jmol",true);

(when operating from a local drive, use a signed applet)
or

jmolInitialize("../../Jmol",false);

(when from the web, don't use the signed applet)

The presumption here is that the web designer does not know whether this 
is from a local drive or not and so is trying to cover both bases. The 
problem is that it is telling the applet to use a signed applet when 
operating from a hard drive and an unsigned applet when operating from a 
web page. I guess I can sort of imagine the use for that, but really the 
better solution is just to have your data files arranged so that there 
is no issue in the first place.

Philosophically I don't like the idea of automatically using one set of 
Jar files when the page is local and a different set when it is on the 
web.  Right now 10.9 is not being distributed with any signed applets.

By the way, jmolInitialize (in 10.9) now accepts a third option: 
specifying the jar file explicitly:

  jmolIntialize(".","JmolApplet.jar")

for example. This allows use of a single Jar file rather than needing 
the six numbered ones.



 > 
 > which, according to what's said on that page, should use the signed 
applet if needed.
 > Luckily, I also put the jmol files into the correct position in the 
file path.
 > So far, this worked fine for me, whether I opened my pages with a 
file://... url locally or with a
 > http://... url to open the  pages over a web server, and to tell the 
browser to trust the applet 
 > once per session did not seem too much of a bother.
 >
 > However, when I replaced the jmol 10.3.1 files by the jmol 11 beta 
files, nothing worked.
 > Eventually I realized that I could not just rename  the jmol-11.js 
file to jmol.js, but had to change
 > the reference to the file, and I at least got it to work from the 
server. Now, if I also remove the
 >  ",window.location.protocol == "file:" from all files, things should 
work again.
 > But it took your answer to my question for me to realize that this 
was the problem.

right, the 10.9 download doesn't include any signed applets.

Bob

 >
 >                                                                 Annemarie
 >
 >
 >> Message: 4
 >> Date: Mon, 28 Aug 2006 12:01:01 +0200
 >> From: Rolf Huehne <[EMAIL PROTECTED]>
 >> Subject: Re: [Jmol-users] How do I select
 >> To: [email protected]
 >> Message-ID: <[EMAIL PROTECTED]>
 >> Content-Type: text/plain; charset=ISO-8859-1
 >>
 >> Annemarie Honegger wrote:
 >>
 >>> Is there a signed applet available for the most recent version of 
Jmol?
 >>> The stuff I am currently working on is to be distributed on CD and
 >>> therefore needs to function
 >>> without being placed on a web server.
 >>>
 >> I don't know if you need any other special property of a signed applet.
 >> But there should be no problem to use the unsigned applet without a web
 >> server. I used for example Jmol version 10.00.36 from an USB stick
 >> through a web browser.
 >>
 >> As a user I rather don't like signed applets, because they are more
 >> risky. So if it is not really necessary it would be better to use the
 >> unsigned applet, in my opinion.
 >>
 >> Regards, Rolf
 >>
 >> Message: 5
 >> Date: Mon, 28 Aug 2006 08:22:12 -0500
 >> From: Bob Hanson <[EMAIL PROTECTED]>
 >> Subject: Re: [Jmol-users] How do I select
 >> To: [email protected]
 >> Message-ID: <[EMAIL PROTECTED]>
 >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 >>
 >> right, thanks for correcting that link.
 >> I'd like to hear from people who are using the signed applet; I don't
 >> think many people are doing that.
 >> If your data files can be on the CD, then there's no need. Just make
 >> sure the data files are in a subdirectory of the directory containing
 >> the JAR files.
 >> That's the only additional restriction for use from a local drive.
 >>
 >> Bob
 >>
 >> Annemarie Honegger wrote:
 >>
 >>> Dear Bob
 >>>
 >>> Thanks for your answer. I have so far been working with whatever
 >>> version was
 >>> available on http://jmol.sourceforge.net/
 >>>
 >>> The link you indicated (http://www.stolaf.edu/academics/jmol)  does
 >>> not work,
 >>> I did download the Jmol 11 beta
 >>> from http://www.stolaf.edu/academics/chemapps/jmol/
 >>>
 >>> Is there a signed applet available for the most recent version of 
Jmol?
 >>> The stuff I am currently working on is to be distributed on CD and
 >>> therefore needs to function
 >>> without being placed on a web server.
 >>>
 >>>                Thank you very much
 >>>
 >>>                                        Annemarie
 >>>
 >
 >
 >
 >
 > -------------------------------------------------------------------------
 > Using Tomcat but need to do more? Need to support web services, security?
 > Get stuff done quickly with pre-integrated technology to make your 
job easier
 > Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimo
 > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
 >
 >
 > _______________________________________________
 > Jmol-users mailing list
 > [email protected]
 > https://lists.sourceforge.net/lists/listinfo/jmol-users





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to