Hi Bob,

Thanks for your message.
> 1) DO NOT poll the applet with a setTimeout(). This will occasionally 
> crash the applet and could cause one of the strangest bugs in Firefox 
> -- while polling, if you type in the address line, your text comes out 
> sdrawkcab. No kidding. I kid you not.
That's an unexpected side-effect! Okay - thanks for the advice.
> 2) You need to get loadStructCallback working. If you can't, ask. It's 
> really the only way to go.
It does work in the sense that it calls the specified javascript 
function as soon as the structure is loaded into Jmol. The problem I had 
was that Jmol still didn't seem to be ready to give an answer to the 
following call at that point:

jmolGetPropertyAsArray("atomInfo", "all")

Sometimes it would work fine, but other times it would either return 
null or an empty array. I think there was some pattern to it - the 
larger and more complex the structure, the more often it failed, 
presumably for obvious reasons. So the real question is what does Jmol 
have to do before it can provide the 'atomInfo' property to the 
javascript layer, and is this guaranteed to be completed before the 
loadStructCallback function is called? Is there something else I need to 
do or understand to make this work reliably?

> 3) \? and \*. Great idea. I should be able to do that easily enough.
Excellent - thanks.

Ian

LEGAL NOTICE
Unless expressly stated otherwise, information contained in this
message is confidential. If this message is not intended for you,
please inform [email protected] and delete the message.
The Cambridge Crystallographic Data Centre is a company Limited
by Guarantee and a Registered Charity.
Registered in England No. 2155347 Registered Charity No. 800579
Registered office 12 Union Road, Cambridge CB2 1EZ.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to