at 12.09p EDT on 2004 January 31 Saturday Miguel Howard said: > Chris, > > > Here is the odd part. If cell457b.html is "dragged and dropped" onto a > > browser (Mozilla 1.6, Safari 1.0.1, Camino 0.7, IE 5.2.2) the applet > > will load, but the pdb file will not load. Camino et al. briefly report > > a security exception in the status bar. > > This behavior is correct. > > The applet is not allowed to access files from the local hard disk. It is > only allowed to access files on the web server from which it was loaded. > > (Note that in this case it was not loaded loaded from a web server. The > html file came from file:// Therefore, one might think that the applet > *should* work since it is accessing something on 'the place from which it > was loaded'. But they decided not to do it that way.) >
hmm. I feel this needs clarification before X users start firing up Apache (which has its own drawbacks). I am running Safari 1.1.1 on Os X 10.3.2, reports Java 1.4.1_01. I just opened (cmd-O) a local html file that loads a local copy of the applet and a local pdb file, and everything works just fine. that tells me that I can run local copies of Jmol without needing the http protocol, at least in Safari. what am I doing differently? Mozilla 1.6 does not work, but this may be Java related: Tried to create the VM in the Java Applet.plugin. We detected that one already was created for this browser. Using existing VM. **Warning** this VM MAY not have the expected Java Runtime Parameters. :tim -- timothy driscoll molvisions - molecular graphics & visualization <http://www.molvisions.com/> usa:north carolina:wake forest > > > However, if I use the included > > Apache server to serve the files to myself > > (http://127.0.0.1/~myusername/test/test2/cell457b.html) both the applet > > and the pdb file load properly. If the html file, the pdb, and the > > applet coexist in the same folder then both dragging and dropping and > > loading via the loopback (correct term?) address work without a problem. > > Correct. This is the way you need to do it. > > Note that if you change the applet itself (download a new version). Then > you must completely shut down the browser and restart it. > > > So, if you want to test your files before uploading them to a server, > > you will have to activate your Apache server. > > Good. > > > Miguel ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

