From: Jeff H. <jh...@de...> - 2007-05-15 13:48:23
|
I thought I would try setting up a page to load files from the RCSB site. I've tried using the code suggested below. If I use that code as shown in a jmolButton it doesn't work. The button does not show up. If I remove the quotes from the load files command the button displays but the files don't load. I get the following message displayed in the applet: "java.security.AccessControlException: access denied (java.net.SocketPermission www.rcsb.org:80 connect.resolve)" Here is the relevant code from the page: <script type="text/javascript"> jmolInitialize("JmolFolder","JmolAppletSigned.jar"); jmolApplet(600, "background [xFFFF99];"); </script> ... <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> I guess I don't have to use this, but it seems a desirable option to be able to load any file and not have to actually have the files on your computer or the server. Any help would be appreciated. Bob Hanson wrote: > BTW, what's with the "=" before the file names? Just curious. > > that was SUPPOSED to read: load files "=1crn" "=1blu" "=1hje" It means "Go get these files from RCSB directly; I don't have them on my computer" I'm starting to use this so that anyone can run the script and it should work for them same as for me. No files required! ***************************** Jeff Hansen Department of Chemistry DePauw University Greencastle, IN 46135 jh...@de... ***************************** |