Bob,

I think it may be a timing issue with the function below. When I comment out 
the initial JQuery working… html replacements, the page no longer “locks.” I 
don’t think it was really locking. I think those html replacements somehow ran 
after the subsequent code. Which…

makes absolutely no sense to me! Nevertheless, it seems to fix the problem.

function getInChI(app,url) {
        //$("#inchi2div").html("working...");
        //$("#inchi1div").html("working...");
        //$("#log").html("working...");
        if (!url) { return; }
        nci = Jmol.evaluateVar(jmolApplet0,"show('chemical stdinchi')").trim();
        $("#inchi2div").html(nci + "    (from NCI/CADD)");
        calc = 
InChI.fromMolfile(Jmol.evaluateVar(jmolApplet0,"write('MOL')")).trim();
        $("#inchi1div").html(calc + "    (calculated in 
JavaScript)");
        $("#log").html(nci==calc ? "no difference" : "check differences?");
}

Otis

--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org

> On Mar 7, 2016, at 4:37 PM, Robert Hanson <hans...@stolaf.edu> wrote:
> 
> Otis, note that there is a bug there. If you ask for the models in this order:
> 
> $taxol
> $morphine
> 
> inchi.js seems to hang and just never respond. Something to do with the fact 
> that $taxol is pathologically 2D and not 3D. But 
> 
> $taxol
> $methanol
> 
> works, until you ask for $morphine. Then it hangs.
> 
> Go figure!
> 
> 
> Bob
> 
> 
> 
> 


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to