Hi Miguel.
Miguel Howard wrote:
Oh, that's great!!! I've just played with it a bit.
* an Applet-to-JavaScript "MessageCallBack" & "PickCallBack" (that I can handle (at least) the Atomnumber and -Symbol in a JavaScript)
Jmol v10 prerelease does this today.
When I do:
<APPLET name="jmol" archive="JmolApplet.jar" code="JmolApplet"
mayscript="true" height="600" width="600">
<PARAM name="emulate" value="chime" />
<PARAM name="debugscript" value="true" />
<PARAM name="MessageCallBack" value="messageCallback" />
<PARAM name="PickCallBack" value="pickCallback" />
<PARAM name="load" value="molecule.xyz" />
<PARAM name="script" value="select all; wireframe 0.1; cpk 0.5"/>
</APPLET>
<script language="JavaScript">
<!--
function messageCallback(args) {
alert("MessageCallback\n"+args+"\n");
}
function pickCallback(args) {
alert("PickCallback\n"+args+"\n");
}
//-->
</script>with Jmol10pre5 the CallBack String only contains the name of the applet (in this case "jmol").
Is there any Documentation on that feature? Is it already complete?
I can remember a discussion on this list about the format of the callback (static string/Array or Applet parameter defining the content) but I can't find a result.
...Oliver -- Oliver St�ker ======================================================================= = University of Paderborn = Office: W1.111 = = Faculty of Science/Dep. of Chemistry = phone : +49 (5251) 60-5466 = = Warburger Str. 100 = fax : +49 (5251) 60-3245 = = D-33098 Paderborn = e-mail: [EMAIL PROTECTED] = = Germany = http://oc24.upb.de/~revilo = =======================================================================
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

