Hello. I have a problem with a simple callback, maybe somene with experience 
can give me 
a hand.

Jmol 11.0.RC4
I have a page with two applets. The second one is being monitored using 

     jmolSetCallback("messageCallback", "messageProcess")

Opening the Console (from the pop-up menu) locks the applet. This happens only 
for the 
applet being monitored by setCallback. Suppressing the "jmolSetCallback" avoids 
the 
problem.

My "messageProcess" is a function that checks only spin status:

function messageProcess(a,b)
{       a = a.substring("jmolApplet".length)    // a will start with 
"jmolApplet": strip and 
leave just the ID part
        if (a != "1") return    // only acts on second applet
        //  SPIN DETECTION AND TOGGLE
        if ( b.indexOf("set spin") != -1 )
        {       if ( b.indexOf("spin on") != -1 )       //was spinning
                {       jmolScript("spin off", a) 
                }
                else    //wasn't spinning
                {       jmolScript("spin on", a) 
                }
        }
        //  END of SPIN DETECTION AND TOGGLE
}

The function works perfectly, the problem iis only opening the console.

Thanks for any help


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to