If you are using the signed applet, that's a limitation I too ran  
into. Bob once explained the technical reasons for the issue there
http://www.mail-archive.com/[email protected]/msg11006.html
You can try replacing jmolScriptWait by JmolScript to see if the  
trouble comes from this limitation.
Paul

Le 3 oct. 2009 à 00:47, Dan Connolly a écrit :

> I figured out the basics of installing Jmol.js on
> my own site:
>
>  http://neurocommons.org/~danc/viz/pg1.html
>
> I can open the console and execute this:
>
>  load "http://www.rcsb.org/pdb/files/1K5N.pdb";;
>
> It works as expected.
>
> Then I put an input field with the value 1K5N
> and a button that calls a javascript function that
> turns that pdbid into a full URI and tries to
> run the very same script using...
>
>  jmolScriptWait('load "' + adr + '";');
>
> It doesn't work; instead, I get:
>
> 4,scriptStatus,0,Script completed
> 6,scriptStatus,0,Jmol script terminated
> 3,scriptTerminated,1,Jmol script terminated unsuccessfully: script
> ERROR: java.security.AccessControlException: access denied
> (java.net.SocketPermission www.rcsb.org:80 connect,resolve) | ---- 
> line 1
> command 1: |          load >> ''http://www.rcsb.org/pdb/files/ 
> 1K5N.pdb''
> <<
> 5,scriptTerminated,1,Jmol script terminated successfully
> 1,scriptStarted,4,load ''http://www.rcsb.org/pdb/files/1K5N.pdb'';
> 2,scriptError,0,script ERROR: java.security.AccessControlException:
> access denied (java.net.SocketPermission www.rcsb.org:80
> connect,resolve) | ----line 1 command 1: |          load >>
> ''http://www.rcsb.org/pdb/files/1K5N.pdb'' <<
>
> Then I added a jmolCommandInput() to the page; putting
>  load "http://www.rcsb.org/pdb/files/1K5N.pdb";;
> in there works fine.
>
> I'm stumped. Help?!?!
>
> -- 
> Dan Connolly, W3C http://www.w3.org/People/Connolly/
> consultant, Midwest Web Sense http://www.midwestwebsense.com/
> gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register  
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to