10.x prototype only, not 10.2:
Viewer is public, so what you can do in JavaScript is
var myviewer=jmolGetPropertyAsJavaObject("jmolViewer")
then all the methods of Viewer are accessible via JavaScript.
HIGHLY EXPERIMENTAL
I believe another applet in Java would use:
import netscape.javascript.JSObject;
JSObject jsoWindow;
JSObject jsoDocument;
try {
jsoWindow = JSObject.getWindow(appletWrapper);
jsoDocument = (JSObject) jsoWindow.getMember("document");
otherApplet = (JSObject) jsoWindow.getMember("otherAppletNameHere");
otherViewer= (JmolViewer)otherApplet.getProperty("jmolViewer");
} catch (Exception e) {
System.out.println("" + e);
}
where "appletWrapper" is the browser embedding that other applet.
I haven't experimented with this much; someone else probably knows
better how to do this.
Bob
eric capps wrote:
>is it possible for jmol to be embedded in a page with another applet?
>how would this be done, and how would the second applet go about
>accessing jmol's public methods?
>
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users