Re: [Jmol-users] getting info from Jmol applet

2008-08-20 Thread Robert Hanson
Jeff, The mistake here is timing. You cannot query an applet while the page is loading (prior to and completion of applet initialization). In some cases this crashes browsers; in others it just causes an error; in others it permanently disables the applet communication. The simple fix is to plac

[Jmol-users] getting info from Jmol applet

2008-08-20 Thread Jeff Hansen
I'm having difficulty getting info from the Jmol applet. Here is my code (basically copied from a post from Bob Hanson): jmolInitialize("jmol"); jmolApplet(500, "load ../Jmol/jmol/models/1bf3.pdb"); var atomSet = document .getElementById("jmolApplet0").getP