On 8/27/05 (1:17 ) Frieda Reichsman wrote:

>On Aug 26, 2005, at 2:34 PM, timothy driscoll wrote:
>
>>turn on Personal Web Sharing in the System Preferences.  put your
>>folder  in /Library/WebServer/Documents/.  access via
>><http://localhost/>.
>>
>>if this doesn't work, your httpd error log (in Console.app) will
>>tell you what went wrong.
>
>I saw the permissions error again (also in httpd log) after doing
>the above, but this time when I used "Get Info" to change the
>permissions, the error ceased and I was able to see the page.
>Thanks, Tim.
>
I have had mixed results changing permissions using Get Info; sometimes it just 
hasn't worked :-(  look into doing this in a shell, using Terminal, if you will 
be doing this kind of thing often.  try 'man chmod' and 'man chown' for a place 
to start...


>Question: is it not possible to use the/user/Sites folder instead of 
>/Library/WebServer/documents folder for this purpose? Or is this a
>/just different way, perhaps more rigorous?
>
I believe that ~/Sites is implemented as a Web document root using Virtual 
Hosts; /Library/WebServer is the 'default' document root for apache on OS X. I 
use the latter for two reasons: 1) because I am the only user on my computer, 
so I don't really need separate Sites folders, and 2) to avoid any possible 
complications from things that I don't really understand yet - like virtual 
hosting ;-). 


>The buttons now play the scripts. (But I still do not understand why
>Mozilla rejected the buttons in local mode despite having the
>appropriate arrangement of applets, etc. in the path.)
>
you are 'pushing the envelope' for using Jmol on OS X.  I would venture to say 
that the same is true about Java on OS X in general.  within Safari, applet 
things work ok most of the time.  in other browsers, well, sometimes you take 
your chances. ;-)


>However, in Mozilla the applet now flashes a white background every
>time I click a button (I am using a black background). The structure
>disappears as well. There are no javascript errors, nothing in the
>Java console and the Jmol console looks fine. In Safari, the
>structure stays put and there are no flashes of white.
>
yes, I have seen this behavior as well. keep in mind that getting OS X browsers 
(other than Safari) to use the Apple JVM is a hack at this point.  there are 
bound to be issues.


hate to be a downer, but...

I think the take-home point is that non-Safari browsers on OS X do not yet play 
well with things Java.  this is not really a Jmol issue, but a function of the 
relative state of Java support on Macs.  my recommendation for developing Jmol 
on the Mac is to make sure it works in Safari, then note the incompatibilities 
with other browsers.  often there is nothing that can be done in Jmol - but 
report the bugs to Apple so they know that people are using Java, and how they 
are using it.

regards,

tim
-- 
Timothy Driscoll
molvisions - see, grasp, learn.
<http://www.molvisions.com/>
earth:usa:virginia:blacksburg

"Death is not the worst than can happen to men." - Plato



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to