Hi,
I have a question of using Jmol to reload a pdb file. My idea is: if I
have another pdb file, for example: 1.pdb, and I want the HTML to reload the
new pdb file automatically.
I use the code below to actualize my idea, but it can't work.
The code is :
<html>
<title>Image</title>
<script language="javascript">
function runMyJmol(){
var jmolImage = document.getElementById("loadjmol");
jmolImage.setAttribute("value","1.pdb");
setTimeout("runMyJmol();",5000);
}
</script>
<body onLoad="runMyJmol();">
<applet name="jmol" code="JmolApplet" archive="JmolApplet.jar"
width="350" height="350">
<param id="loadjmol" name="load"
value="S_0003_8934_0001.pdb">
</applet>
</body>
</html>
The pdb fiel i.pdb and S_0003_8934_0001.pdb are in the same path.
Would you tell me how can I reload pdb file automatically?
Thank you very much!
vivi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users