at 3.53p EDT on 2004 January 29 Thursday Christopher Masi said: > For other coding novices like me out there... > > When testing HTML code on OS X systems I noticed the following oddity. > When I think about it from a security perspective, it isn't actually > all that odd. Here goes... > > Here is the directory structure in /Users/myusername/sites/ > > test > test2 > cell457b.html (the original cell457b with codebase="../jmol") > cell457b.pdb > jmol > JmolApplet.jar > > 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. 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. > > So, if you want to test your files before uploading them to a server, > you will have to activate your Apache server. >
you can always use the Open.. menu command (Cmd-O) to open your html file, and it will work with relative url paths. as easy as it is to activate apache on OS X, cmd-O is even faster! regards, :tim -- timothy driscoll molvisions - molecular graphics & visualization <http://www.molvisions.com/> usa:north carolina:wake forest ------------------------------------------------------- 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

