Angel Herraez wrote:
Hi Jeffthis sounds like the typical quotes rpoblme with javascript. But maybe I haven't read thoroughly your code. I will suggest a quick fix; if it doesn't work, write again Basic principles: 1) Jmol needs double quotes for certain parameters, file names are one of them. 2) Javascript needs alternating double and single quotes and sometimes escaping them <script type="text/javascript"> jmolButton('set echo top left; echo Loading files; refresh; load files "=1crn" "=1blu" "=1hje"; set echo bottom left; echo 1CA2;', "Load files"); jmolBr(); </script>
Angel,Thanks for the suggestion. I tried it and the button does display using the code you suggested. However, I still get the same error message "java.security.AccessControlException: access denied (java.net.SocketPermission www.rcsb.org:80 connect.resolve)" when I click on the button. So it looks like your suggestion of using single quotes around the whole command and double quotes around the pdb names does the same thing as my code which used double quotes around the whole command and no quotes around the pdb names. Either way I get a java security error message. Any other suggestions?
Jeff ***************************** Jeff Hansen Department of Chemistry DePauw University Greencastle, IN 46135 [EMAIL PROTECTED] *****************************
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

