> 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

Reply via email to