Bob Hanson sent (2004.05.21 at 12.37p [-0500gmt]) : >Oh, by the way, I've put this up as jmol now at > >http://www.stolaf.edu/people/hansonr/jmol/pi > >but the scripting doesn't work. > I get this Java error trying to load a new structure at your page:
===== Fri May 21 2004 ===== 13:59:41 US/Eastern ===== load: class JmolAppletControl archive= not found. java.lang.ClassNotFoundException: JmolAppletControl archive= at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566) at sun.applet.AppletPanel.createApplet(AppletPanel.java:622) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1899) at sun.applet.AppletPanel.runLoader(AppletPanel.java:551) at sun.applet.AppletPanel.run(AppletPanel.java:298) at java.lang.Thread.run(Thread.java:552) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:265) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149) ... 9 more perhaps Miguel can tell what this means? -- Timothy Driscoll molvisions - see, grasp, learn. <http://www.molvisions.com/> usa:north carolina:wake forest >timothy driscoll wrote: > >>Bob Hanson sent (2004.05.21 at 7.21a [-0500gmt]) : >> >> >>>Miguel, >>> >>>I'd like to switch the following app to jmol. Would you please >>>take a look at it and tell me if there is anything it can do with >>>Chime that can't be done with jmol? >>> >>>http://www.stolaf.edu/people/hansonr/jmol/pi/ >>> >> >>I took a look at the above url on Mac NC 4.79. all of its features >>can be accomplished in Jmol, with the possible exception of "copy >>to clipboard" (not sure what that is designed to do; it doesn't >>work OMM). I don't know if "select *" works, though I would not be >>surprised (just don't have a chance to test it right now). but one >>can use "select all" in any case. >> >> >> >>>Note that this was written in the era when both IE and Netscape >>>had dropped "live connect" so it uses a hidden frame with code >>>such as >>> >>><embed type=application/x-spt hidden=true width=10 height=10 >>>button=push target=C0_42203168433687915 script="select *;color >>>group" immediate=1> >>> >>>to do all the driving. >>> >>>Q: Is there anything like this in jmol that avoids Live Connect? >>> >> >> >>you can send the commands to Jmol using liveconnect, which works >>fine in almost all modern browsers - the notable exception is OSX, >>where only Safari 1.2 has liveconnect support for now. >> >>no hidden layer/frame is necessary - just use a direct javascript >>call like this: >> >>document.myjmol.script("select all;color blue;spacefill 50%"); >> >> >>but if you really want to use the hidden frame (aka the IMBIF >>method), here is mine; season to taste: >> >> >>/* >>function writeIMBIF(script) { var immediate_button; var target; >> >>immediate_button = "<applet " + "code='JmolAppletControl' " + >>"archive='JmolApplet.jar' " + "codebase='..\/..\/appletbase' " + >>"height='5' width='5' mayscript='true'>" + "<param name='target' >>value='demo3d' \/>" + "<param name='type' value='immediate' \/>" + >>"<param name='script' value='" + unescape(script) + ";' \/>" + >>"<\/applet>"; if ( (getClientBrowser() == "ns") && >>(getClientBrowserVersion() < 5)) { target = >>document.layers[document.layers.length-1]; target.document.open(); >>target.document.write(immediate_button); target.document.close(); >>} >>else document.getElementById("imbif").innerHTML = immediate_button; >>} >>*/ >> >> >> >> >>>Q: What's the history/future of Live Connect? >>> >> >>hopefully it will continue to enjoy support across vendors. Apple >>seems to be behind the times with OSX, but I am optimistic. >> >> >>hope that helps, >> >> >>tim > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id�66&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
