Hi all

I am playing with some callbacks in JSmol 14.2.14_2015.36.11
--I am calling them as parameters of "Info"

loadStructCallback   is behaving as expected

Howver, I have trouble with   appletReadyCallback
(I can find no documentation for this except on the Wiki, which I probably 
copied from some report from Bob -- is that maybe deprecated, in favor of 
the alternative "Info.readyFunction" parameter?)

The issue is, the specified callback function is called and it runs, I can also 
read the parameters passed to it. But creation of the Jmol object seems to 
be aborted - no frank, no popup menu, no scripts are executed.

Is there a bug or something I need to add?

function isDone() {
  alert('Jmol is ready');
}
var myInfo = {
  appletreadycallback: 'isDone'
};

Jmol.getApplet('myJmol', myInfo);
Jmol.script(myJmol, 'load "some.pdb"; ');


Thanks,


------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to