|
||
|
|||
|
Hi all,
I am trying to add jmol applet in jsf. This applet is used to retrieve the structure of a molecule. I am able to get this functionality by using script tag as follows: Java Code
<html>
<head>
<title>testing applet</title>
<script src="myjmol/Jmol.js"></script><!-- REQUIRED -->
</head>
<body>
<rich:panel>
<script type="text/javascript">
jmolInitialize("myjmol","JmolApplet.jar");
jmolApplet(300, 'load "temppdb.pdb"');
</script>
</rich:panel>
</body>
</html>
Downloaded "jmol-11.6.21-binary.zip" from SourceForge.net: Jmol: Files and extracted all the files into folder named "myjmol". This contains the js files to use jmolInitialize() and jmolApplet(0 functions. Another method found is using the applet tag as follows: Java Code
..... <body> <rich:panel> <applet name="jmol" code="JmolApplet" archive="JmolApplet.jar" codebase="myjmol" width="300" height="300" mayscript="true"> <param name="progressbar" value="true" /> <param name="load" value="temppdb.pdb" /> </applet> </rich:panel> </body> ............ Any help would be much appreciated. Thanks in advance.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| servlet applet communication | prashanthi_asn | Java Servlet | 0 | 21-05-2009 05:50 AM |
| RLC Circuit Java Applet | syxxpac316 | Java Applets | 6 | 13-05-2009 09:26 PM |
| [SOLVED] Java Applet Switching To Different Windows? | channi3 | Java Applets | 1 | 11-03-2009 08:41 PM |
| Calculator-applet | AnithaBabu1 | Java Applets | 0 | 16-08-2008 04:42 AM |