Eric wrote:
I've read this thread and am pretty sure I am encountering the same
problems you did in writing my first web page with Jmol in it. I
tried simply copying/pasting the 'simple example' and got an empty
black window.
It's not entirely clear to me from reading the replies--what did you
finally do to get the thing to work?
What I did was specific for the Mac OS X context, although you can do
this on Linux or Windows if you have Apache mounted. However the
location of Apache is very non-standard in Mac OS X, so you need to
check with someone else if you are on Linux or Windows.
On Mac OS X:
1. You have to make sure Apache is running by turning on Personal Web
Sharing (System Controls > Sharing > Services ).
2. Then fire up Safari and type in http://127.0.0.1/ and you should
see the default Apache page, confirming that you are running Apache
on localhost.
3. Now you need to find where the page is that you are seeing. Go to
the top Level of your computer (I'm assuming you are logged in to an
account where you have adminstrator's powers - this will be true if
you only have one login) Go >Library>WebServer>Documents and in
Documents you will see various index.html.country files -
index.html.en is the default Apache page for an English language
setup. You might wish to check this is so by substituting your own
index.html or referencing a test file at the top level of documents.
4. As far as Jmol was concerned I set up two directories within Documents:
jmol - containing Jmol.js and jmolApplet.jar and all its sibling jar files
jmolTests - containing jmolTest.html and caffeine.xyz (from the Jmol site)
jmolTest.html is as follows:
<html>
<head>
<title>wibble</title>
<script src="../jmol/Jmol.js"></script>
</head>
<body>
<script>
jmolInitialize("../jmol");
jmolApplet(200, "load caffeine.xyz");
</script>
</body>
</html>
-------------
Not relevant to Eric's question, but to Jmol.js in general, I managed
last night to do a more polished example with buttons laid out using
the same sophisticated css i currently use on my page. I will post
this later this weekend as it illustrates points on layout that I
don't think are on the Jmol website.
David
--
_______________________________________________________________
David P.Leader, Biochemistry and Molecular Biology
Davidson Building, University of Glasgow, Glasgow G12 8QQ, UK
Phone: +44 41 330-5905 http://doolittle.ibls.gla.ac.uk/leader
_______________________________________________________________
-------------------------------------------------------
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