Angel,

This page

http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info 
<http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info>

indicates the structure should be

readyFunction: jmol_isReady,

with the JavaScript function NOT in quotes.

Otis



> On Jun 16, 2015, at 1:15 PM, Angel Herráez <angel.herr...@uah.es> wrote:
> 
> 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
> 
> 

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

Reply via email to