just look at the return from

 x = load ("http://www.google.com")

If it reads:

java.security.AccessControlException: access denied (java.net.SocketPermission www.google.com:80 connect,resolve)

you don't have the signed applet.


On Thu, Jun 28, 2012 at 6:19 AM, Martin Hediger <ma.hed@bluewin.ch> wrote:
That's a useful information. So the _signedApplet basically does not
tell if the user granted access or not, rather only if the applet is
supposed to be signed.
I can think of some rather ugly hacks in the domain of user interaction
simulation after the pages loads to see if a "dummy"-state can be saved
and check some kind of server response, but there must be a smarter way
of doing this, i hope.

Best regards

On 28.06.12 12:54, Rolf Huehne wrote:
> On 06/28/2012 12:37 PM, Martin Hediger wrote:
>> ok, that might look useful
>> jmolScriptWait('show _signedApplet')
>> "2,scriptStatus,0,script 2 started
>> 4,scriptStatus,0,Script completed
>> 6,scriptStatus,0,Jmol script terminated
>> 5,scriptTerminated,1,Jmol script terminated successfully
>> 1,scriptStarted,2,show _signedApplet
>> 3,scriptEcho,0,_signedapplet = true
> I have actually tested this now for Jmol 12.2.2 and the result is like I
> expected:
> I opened the following URL in the browser
> (http://www.imb-jena.de/cgi-bin/3d_mapping.pl?CODE=1deh&APPLET=signed&JMOLVERSION=12.2.2)
> and clicked onto "cancel" in the security dialog.
> Afterwards the command "show _signedApplet" provided the result
> "_signedapplet = true". But if I tried to save the state it didn't work,
> because the signed applet hadn't got the rights of a signed applet.
> Regards,
> Rolf

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

Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN

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