Dear all,
some very basic question about Jmol and embedding it in a webpage.
I have this directory structure
/var/www/html/jmol
ls:
total 1816
-rw-r--r-- 1 root root 651645 Jul 24 17:36 12E8.pdb
-rw-r--r-- 1 root root 1136848 Jul 24 17:21 JmolApplet.jar
-rw-r--r-- 1 root root 49459 Jul 24 17:46 Jmol.js
And this is the page:
<html> <head> <title>Jmol Test</title>
<script type="text/javascript" src="jmol/Jmol.js"></script>
</head> <body> <form>
<script language="JavaScript" type="text/javascript">
var frameWidth, frameHeight;
if (this.innerWidth){
frameWidth=this.innerWidth;
frameHeight=this.innerHeight
}
else{ //IE
frameWidth = document.body.clientWidth
frameHeight = document.body.clientHeight
}
//jmolDebugAlert(true);
//jmolInitialize("jmol/");
jmolApplet([frameWidth* .5,frameHeight* .95],"background white;
load jmol/12E8.pdb;");
</script> </form> </body> </html>
When using
jmolInitialize("jmol/");
the PDB file is not loaded and the status bar shows "Applet
jmolApplet() notinited"
The debug shows the correct codebase and the correct parameters from the script.
It tells me I don't have Java Applets enabled etc., but it works with
Jmol on other pages.
It also works when I have the .jar in the html directory where the
index.html is.
Any help is greatly appreciated!
My second question is:
Can I use a textfile as input for jmolApplet? Something like:
jmolApplet([frameWidth* .5,frameHeight* .95],"./input.jmol");
Thanks in advance for your help!
Thomas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users