Here is what I have observed for the Jmol applet running in a local file:/// directory. This only happens on my home PC, running Java 1.4.1_02, not my laptop or office machine (all Windows):

The model file (or, for that matter, any file accessed with "show file") must be in either the directory containing JmolApplet.jar or a subdirectory of that directory.

Rich, I would try that again just be absolutely sure when you put all the files in the same directory and use "./" for your codebase that it really doesn't work.

Bob

Rich wrote:
Someone wrote:


who be dat? :-)


Q: Are all the things in the same directory?

1. html file 2. JmolApplet.jar 3. Jmol.js 4. xxxx.pdb ?


yes, that was one of the configurations tried.



Different browsers behave in different ways with applets running through
file:// instead of http:// to a web browser.

Most will allow you to access things if everything is in the same
directory. But it is up to the browser/Java implementation.


hmmm... not this one.

If I use this method: <script src="../jmol/Jmol.js">

then that jmol folder must live in Library/WebServer/Documents if the
applet is to get loaded. But that still doesn't allow access to the pdb
file. If I use

<script src="jmol/Jmol.js">

then the applet loads if the jmol folder is in the same folder as the
.html source file I'm loading. But still no access allowed to the .pdb
file.

So it seems like file:// access for testing/development is not compatible
with unsigned applets on the MacOSX platform  :-(


Two options:


Option 1 - Turn on the web server, but only allow local access --------------------------------------------------------------

*** 2 minutes later ***

Those bozos ... looks like you cannot do that, at least with 10.3.3 that I
have ... so much for their so-called 'Firewall'


not under 10.3.7 either



OK, there is still another option.
You can configure apache so that it will only accept requests from the
local machine.

$ su
#cd /etc/httpd
#<edit> httpd.conf
search for 'Listen' it will be commented out with '#'
Add:
Listen 127.0.0.1:80

save

#apachectl restart (or apachectl start)

Actually, in your case, just turn it on in the control panel.

Other machines will not be able to get in. Confirm by trying from another
machine.

I suggest that you put in a symbolic link to your work area from



I'll poke around a bit and see what I can come up with. I just love
getting down and dirty with httpd.conf :-)

Rich



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

-- --

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge." - Albert Einstein




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to