Run Jmol applet using apache server
Posted
by
user1144004
on Stack Overflow
See other posts from Stack Overflow
or by user1144004
Published on 2012-10-21T10:22:34Z
Indexed on
2012/10/21
11:00 UTC
Read the original article
Hit count: 189
apache
I am a newbie in using apache and jmol. I am trying to run a jmol applet in python using apache server. Because of strict folder arrangement restrictions in jmol (html and model files should be present inside jmol folder), I had to move the default htdocs and cgi-bin folder inside jmol folder by editing the "httd.conf" file. Now the new location of htdocs folder is "Apache2.2/jmol/htdocs" and of cgi-bin folder is "Apache2.2/jmol/cgi-bin".
Now I've put my "start.html" file in the htdocs folder which has the jmol applet tag. It takes "CA150.XYZ" file which is also placed in the same folder. On running this "start.html" file through apache server, nothing happens. It even doesn't give any error, it just shows a blank page. But if I try to run "start.html" without apache server, jmol applet do get executed and runs successfully.
What am I doing wrong? Any idea?
Here is my "start.html" file
<head>
<title>Simple example</title>
<script src="../Jmol.js" type="text/javascript"></script>
</head>
<body>
<form>
<script type="text/javascript">
jmolInitialize("../");
jmolApplet(200,"load CA150.XYZ");
</script>
</form>
</body>
© Stack Overflow or respective owner