Re: [Jmol-users] Developing a Jmol test bed

2007-11-17 Thread Bob Hanson
Craig, you simply first invoke jmolSetDocument(0); then when you get that button code, you do it this way: document.getElement("whatever").innerHTML = jmolButton() That is, Jmol.js then returns the code rather than doing a document.write(), and you send it to the div. Bob Craig T Martin

Re: [Jmol-users] Developing a Jmol test bed

2007-11-17 Thread Angel Herraez
Another idea: use ONLY jmolScript() I've done a quick test and this seems to work, as no form controls are being built on the fly. e.g. instead of jmolButton(.a.,.b.) use I think this confirms my former suggestion: Jmol.js functions that build controls while page is loading cannot be applied t

Re: [Jmol-users] Developing a Jmol test bed

2007-11-17 Thread Angel Herraez
Hi Craig A very interesting utility! I'm guessing, but I think your problem is due to the factv that jmolButton() etc use the Jmol.js library, and this acts only when the page is being built/rendered. Let me explain myself: A call to jmolButton() adds HTML code while the page is loading, and so

[Jmol-users] Developing a Jmol test bed

2007-11-17 Thread Craig T Martin
Greetings, I am trying to develop a WEB page that will display a Jmol image and then have two sections along the side. In one section, the user can enter full HTML text into a form field, including Jmol.js calls (such as 'jmolButton'). The other panel can then load the code from the f