On Mon, Jul 2, 2012 at 2:42 PM, Martin Hediger <[email protected]> wrote:

> **
> Hi Robert, thanks for getting back, I'm not sure I understand your answer.
> I thought, as you wrote previously, if I see this message, it means my
> applet is not signed.
>

right.


> But it is, because I grant it access.
>

not understanding this. The applet is signed if and only it is the signed
applet. Is that the case? Are you using JmolAppletSigned.jar or
JmolAppletSigned0.jar? Then, if that is the case, you should not have to
give it any privileges at all. Signing does that.




> And from testing it, I know I can use my applet to write a state file to
> my local machine and load it back from there.
>

then you have the signed applet, yes, and you should not be getting that
message, which is easier to read, by the way, from (JmolApi.js):

  Jmol.evaluate([appID here], "load('http://www.google.com')")

or (Jmol.js)

  JmolEvaluate("load('http://www.google.com')", [appExtension here])



What I want to do is to notify the user on the page, after the dialog
> interaction "Signed/Unsigned", what it now means for him because it might
> be that someone does not read the instructions for the website we're
> building. So a label should appear saying: "You did not accept to use the
> signed applet. You will not be able to save a state file." that's all.
>
>
Sure, then you are all set. Your signed applet will not give that Java
error report, and their unsigned one will.

Simple as that. Correct me if I'm wrong. Or, you could do this all within
Jmol with no JavaScript. Just add this script to your start-up script:

if (load('http://www.google.com').find('access denied')){prompt('Oops! You
need the signed applet. Please reload this page.')}


Bob

-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to