Bob, I don’t think this is the problem, but I should mention it. I’m using my own version of jQuery with the appropriate Jmol js file.
Otis -- Otis Rothenberger o...@chemagic.com http://chemagic.com > On Aug 24, 2015, at 12:07 PM, Otis Rothenberger <osrot...@chemagic.com> wrote: > > Bob, > > Compare goes completely south on me with a lengthy JavaScript error. I’ll > paste my offending script first. This script gets precessed with a > Jmol.script() with 2 models in the window: > > scpt = 'var i = {*}.atomno.max + 1;var t = {*}.atomno.min;select > within(branch, {atomno=i}, {atomno=t});var x = compare({selected}, {not > selected}, "ISOMER");’; > > scpt += 'var y = "These models are " + x; if (x == "NONE"){y = "These models > do not have the|same molecular formula!";};y = y.replace("CONFORMATIONAL > ","CONFORMATIONAL|").replace("DIASTERIOMERS","DIASTEREOMERS|").replace("","IDENTICAL");set > echo top left; font echo 18 serif; color echo lemonchiffon; echo @y'; > > Lengthy JavaScript Error Alert > > > TypeError: null is not an object (evaluating 'c.length') try/catch path: > 0 function (b, c) > args[0]=TypeError: null is not an object (evaluating 'c.length') > args[1]=function () {a.instantialize(this,arguments);} > 1 JS.SmilesExt.getSmilesCorrelation(a, b, c, e, d, f, j, k, g, h, l, m) > args[0]=0 > args[1]=3.4028235e+38 > args[2]=null > args[3]=[C1 #1] > args[4]=[] > args[5]=null > args[6]=null > args[7]=false > args[8]=null > args[9]=null > args[10]=false > args[11]=65536 > 2 JS.MathExt.evaluateCompare(c, a) > args[0]=[JS.ScriptMathProcessor object] > args[1]=Token[bitset(10/0xa) value={{0:4}}][null index =2147483647 i... > 3 JS.MathExt.evaluate(c, a, b, d) > args[0]=[JS.ScriptMathProcessor object] > args[1]=Token[keyword(5/0x8101005) value="compare"] > args[2]=Token[bitset(10/0xa) value={{0:4}}][null index =2147483647 i... > args[3]=135270405 > 4 JS.ScriptMathProcessor.evaluateFunction(a) > args[0]=135270405 > 5 JS.ScriptMathProcessor.addOpAllowMath(a, b, c) > args[0]=Token[keyword(17/0x10100011) value=")"] > args[1]=true > args[2]=0 > 6 JS.ScriptMathProcessor.addOp(a) > args[0]=Token[keyword(17/0x10100011) value=")"] > 7 JS.ScriptExpr.parameterExpression(a, b, c, e, f, d, h, g, k, n) > args[0]=3 > args[1]=16 > args[2]=[JS.ScriptMathProcessor object] > args[3]=true > args[4]=0 > args[5]=-1 > args[6]=1 > args[7]=null > args[8]=null > args[9]=false > 8 JS.ScriptExpr.setVariable(a, b, c, e) > args[0]=3 > args[1]=0 > args[2]=x > args[3]=true > 9 JS.ScriptEval.cmdSet() > > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > 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