MarvinView freezes/won't launch with compressed MOL

User 870ab5b546

20-01-2016 15:34:40

Hi,


We have a feature that allows users to launch MarvinView with a particular structure. When the structure is in compressed MOL format, as in the following case:


  Marvin  05200618592D          

5 4 0 0 0 0 999 V2000
PCxVdD2W60
DE-VdD2W70
7F1WdD2W60
JDzVdD2W60
JDzVjC0W10
10401
40202
20301
40501
M END

then MarvinView fails to launch; the structure never appears, although no error appears in the browser console. If the structure is in MRV format, as in this case:


<cml><MDocument><MChemicalStruct><molecule molID="m1"><atomArray><atom id="a1" elementType="N" x2="-3.0917600000000007" y2="1.4000000000000001" lonePair="1"/><atom id="a2" elementType="C" x2="-1.5517600000000003" y2="1.4000000000000001"/><atom id="a3" elementType="R" x2="-0.51176" y2="0.19166666666666665" sgroupRef="sg1"/></atomArray><bondArray><bond atomRefs2="a1 a2" order="1" id="b1"/><bond atomRefs2="a2 a3" order="1" id="b2"/></bondArray><molecule id="sg1" molID="m2" role="SuperatomSgroup" title="CN"><atomArray><atom id="a4" elementType="C" x2="-0.51176" y2="0.19166666666666665" sgroupAttachmentPoint="1"/><atom id="a5" elementType="N" x2="0.25824000000000014" y2="-1.1420666666666668"/></atomArray><bondArray><bond atomRefs2="a4 a5" order="3" id="b3"/></bondArray></molecule></molecule></MChemicalStruct><MElectronContainer occupation="0 0" radical="0" id="o1"><MElectron atomRefs="m1.a1" difLoc="0.0 0.0 0.0"/><MElectron atomRefs="m1.a1" difLoc="0.0 0.0 0.0"/></MElectronContainer></MDocument></cml>

then MarvinView launches just fine. Here is the code that launches MarvinView:


function launchMView_1() {
startMView(250,
113,
'\n Marvin 05200618592D \n\n 5 4 0 0 0 0 999 V2000\nPCxVdD2W60\nDE-VdD2W70\n7F1WdD2W60\nJDzVdD2W60\nJDzVjC0W10\n10401\n40202\n20301\n40501\nM END\n',
0,
0,
'fig1',
-1,
'marvin');
setInnerHTML('launchMViewCell1', 'MarvinView&trade;');
} // launchMView_1()

/* Method for initiating MarvinView in a jsp page. Requires an
* HTML element with ID = elementId. */
function startMView(width, height, mol, displayFlags, mviewNum, elementId,
qdNum, marvinVersion) {
"use strict";
var isQDatum = !isNaN(qdNum) && qdNum >= 0,
appletBld = new String.builder(),
molParts = (mol + ' ').split('<\/MDocument>'),
numMols = molParts.length - 1,
numCols = (numMols > 2 ? 2 : numMols),
newWidth = width * numCols,
numRows;
if (isQDatum) {
appletBld.append('<table><tr><td class="boldtext" ' +
'style="text-align:right;font-style:italic;">' +
'MarvinView&trade;' +
'<input type="hidden" id="mviewNumOfQD').
append(qdNum).
append('" value="').
append(mviewNum).
append('" /><\/td><\/tr><tr><td class="whiteTable">');
} // if is qDatum
// multidocument structure to display in table?
if (numMols === 0) {
numMols = 1;
}
if (newWidth < 0) {
newWidth *= -1;
} else if (newWidth > 300) {
newWidth = 300;
}
mview_name = 'marvinView' + mviewNum;
mview_begin('/nosession/' + marvinVersion, newWidth, height);
if (numMols > 1) {
numRows = (numMols + (numMols % 2)) / 2;
mview_param('rows', numRows);
mview_param('cols', numCols);
mview_param('border', 1);
} // if there's more than one molecule to display
mview_param('mol', mol);
mview_param('molbg', '#FFFFFF');
mview_param('rendering', 'wireframe');
mview_param('valenceErrorVisible', 'true');
mview_param('valencePropertyVisible', 'false');
mview_param('implicitH', getHVisibility(displayFlags));
mview_param('viewCarbonVisibility', getCVisibility(displayFlags));
mview_param('lonePairsVisible', getLonePairsVisible(displayFlags));
mview_param('atomPropertiesVisible', 'false');
mview_param('chiralitySupport', getRSLabelsVisible(displayFlags));
mview_param('atomMappingVisible', getAtomMapping(displayFlags));
// if (width < 0) mview_param('tabScale', 30);
appletBld.append(mview_end_to_string());
if (isQDatum) {
appletBld.append('<\/td><\/tr><\/table>');
}
setInnerHTML(elementId, appletBld.toString());
} // startMView()

Does MarvinView no longer support compressed MOL format?


P.S. MarvinSketch loads the compressed MOL files just fine. It's only MarvinView that chokes.

ChemAxon d26931946c

22-01-2016 14:04:36

Hi Bob,


 


I've created a simple MView applet that loads the molecule from compressed mdl:


https://marvin-demo.chemaxon.com/applet/GLUON/deploy/master/examples/applets/view/embed2.html


It works on my machine, could you try it out?


BRs,


Peter

User 870ab5b546

22-01-2016 15:14:51

Yes, it works for me. So, try this:



  1. Go to https://epoch.uky.edu/ace and login as student2, password doh! (with the exclamation point).

  2. Click on Test course, then Assignments, then MarvinView test.

  3. Next to question 1, press Solve.

  4. Click on Launch MarvinView. The SVG picture should be replaced with a MarvinView applet containing the same structure, but it's not.

  5. Now navigate to question 2. MarvinView launches and displays the structure properly!


The only difference I can see between structures for which MarvinView launches properly, and those for which it doesn't, is the format in which they are saved.

User 870ab5b546

26-01-2016 19:19:58

Can you change your example to launch MarvinView the way we do, with the user pressing a button to replace an image with the MarvinView applet? We do it this way because some students may be using a computer that does not have Java enabled.


function startMView(width, height, mol, displayFlags, mviewNum, elementId,
qdNum, marvinVersion) {
"use strict";
var isQDatum = !isNaN(qdNum) && qdNum >= 0,
appletBld = new String.builder(),
molParts = (mol + ' ').split('<\/MDocument>'),
numMols = molParts.length - 1,
numCols = (numMols > 2 ? 2 : numMols),
newWidth = width * numCols,
numRows;
if (isQDatum) {
appletBld.append('<table><tr><td class="boldtext" ' +
'style="text-align:right;font-style:italic;">' +
'MarvinView&trade;' +
'<input type="hidden" id="mviewNumOfQD').
append(qdNum).
append('" value="').
append(mviewNum).
append('" /><\/td><\/tr><tr><td class="whiteTable">');
} // if is qDatum
// multidocument structure to display in table?
if (numMols === 0) {
numMols = 1;
}
if (newWidth < 0) {
newWidth *= -1;
} else if (newWidth > 300) {
newWidth = 300;
}
mview_name = 'marvinView' + mviewNum;
mview_begin('/nosession/' + marvinVersion, newWidth, height);
if (numMols > 1) {
numRows = (numMols + (numMols % 2)) / 2;
mview_param('rows', numRows);
mview_param('cols', numCols);
mview_param('border', 1);
} // if there's more than one molecule to display
mview_param('mol', mol);
mview_param('molbg', '#FFFFFF');
mview_param('rendering', 'wireframe');
mview_param('valenceErrorVisible', 'true');
mview_param('valencePropertyVisible', 'false');
mview_param('implicitH', getHVisibility(displayFlags));
mview_param('viewCarbonVisibility', getCVisibility(displayFlags));
mview_param('lonePairsVisible', getLonePairsVisible(displayFlags));
mview_param('atomPropertiesVisible', 'false');
mview_param('chiralitySupport', getRSLabelsVisible(displayFlags));
mview_param('atomMappingVisible', getAtomMapping(displayFlags));
// if (width < 0) mview_param('tabScale', 30);
appletBld.append(mview_end_to_string());
if (isQDatum) {
appletBld.append('<\/td><\/tr><\/table>');
}
setInnerHTML(elementId, appletBld.toString());
} // startMView()


function launchMView_1() {
startMView(250,
113,
'\n Marvin 05200618592D \n\n 5 4 0 0 0 0 999 V2000\nPCxVdD2W60\nDE-VdD2W70\n7F1WdD2W60\nJDzVdD2W60\nJDzVjC0W10\n10401\n40202\n20301\n40501\nM END\n',
0,
0,
'fig1',
-1,
'marvin');
setInnerHTML('launchMViewCell1', 'MarvinView&trade;');
} // launchMView_1()

<table class="regtext" style="border-collapse:collapse; border-style:none; border-color:black;
border-width:1px; margin-left:0px; margin-right:0px; background-color:#FFFFFF;
color:#000000;">
<tr style="background-color:#f6f7ed; border-style:none;">
<td id="launchMViewCell1" class="boldtext" colspan="2"
style="text-align:right; padding-left:10px; font-style:italic;">
<a onclick="launchMView_1();"><u>Launch MarvinView</u></a>&trade;
or click image to copy source
</td>

</tr>
<tr style="background-color:white; border-style:solid; border-width:1px;">
<td id="fig1" colspan="1"
style="text-align:center; border-style:solid; border-width:1px;">

<a onclick="showSource(1);"><svg fill-opacity="1" xmlns:xlink="http://www.w3.org/1999/xlink" color-rendering="auto" color-interpolation="auto" text-rendering="auto" stroke="black" stroke-linecap="square" width="250" stroke-miterlimit="10" shape-rendering="auto" stroke-opacity="1" fill="black" stroke-dasharray="none" font-weight="normal" stroke-width="1" height="113" xmlns="http://www.w3.org/2000/svg" font-family="&apos;Dialog&apos;" font-style="normal" stroke-linejoin="miter" font-size="12" stroke-dashoffset="0" image-rendering="auto">
<!--Generated by Marvin with Batik SVG Generator
MolSource:
<?xml version="1.0" encoding="UTF-8"?><cml xmlns="http://www.chemaxon.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.chemaxon.com/marvin/schema/mrvSchema_14_12_01.xsd" version="ChemAxon file format v14.12.01, generated by v15.11.23.0">
<MDocument><MChemicalStruct><molecule molID="m1"><atomArray atomID="a1 a2 a3 a4 a5" elementType="C N C C H" x2="-3.6749066666666668 -0.5949066666666667 0.9450933333333335 -2.1349066666666667 -2.1349066666666667" y2="1.6917600000000002 1.6917600000000002 1.6917600000000002 1.6917600000000002 0.15176"></atomArray><bondArray><bond id="b1" atomRefs2="a1 a4" order="1"></bond><bond id="b2" atomRefs2="a4 a2" order="2"></bond><bond id="b3" atomRefs2="a2 a3" order="1"></bond><bond id="b4" atomRefs2="a4 a5" order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
</cml>
-->
<defs id="genericDefs" />
<g>
<defs id="22120393778-defs1">
<linearGradient x1="117.50178527832031" gradientUnits="userSpaceOnUse" x2="119.63113403320312" y1="32.88089370727539" y2="32.88089370727539" id="22120393967-linearGradient1" spreadMethod="pad">
<stop stop-opacity="1" stop-color="black" offset="0%" />
<stop stop-opacity="1" stop-color="rgb(51,51,153)" offset="100%" />
</linearGradient>
<linearGradient x1="173.4468231201172" gradientUnits="userSpaceOnUse" x2="175.576171875" y1="32.88089370727539" y2="32.88089370727539" id="22120393664-linearGradient1" spreadMethod="pad">
<stop stop-opacity="1" stop-color="rgb(51,51,153)" offset="0%" />
<stop stop-opacity="1" stop-color="black" offset="100%" />
</linearGradient>
<linearGradient x1="97.83484649658203" gradientUnits="userSpaceOnUse" x2="97.83484649658203" y1="50.74998092651367" y2="52.87933349609375" id="22120393685-linearGradient1" spreadMethod="pad">
<stop stop-opacity="1" stop-color="black" offset="0%" />
<stop stop-opacity="1" stop-color="rgb(51,51,51)" offset="100%" />
</linearGradient>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393278-clipPath1">
<path d="M0 0 L250 0 L250 113 L0 113 L0 0 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="2212039349-clipPath1">
<path d="M-18.073848724365234 -20.677932739257812 L231.9261474609375 -20.677932739257812 L231.9261474609375 92.32206726074219 L-18.073848724365234 92.32206726074219 L-18.073848724365234 -20.677932739257812 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393129-clipPath1">
<path d="M-30.925411224365234 -31.495912551879883 L219.0745849609375 -31.495912551879883 L219.0745849609375 81.50408935546875 L-30.925411224365234 81.50408935546875 L-30.925411224365234 -31.495912551879883 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393247-clipPath1">
<path d="M-39.597286224365234 -20.880895614624023 L210.4027099609375 -20.880895614624023 L210.4027099609375 92.11910247802734 L-39.597286224365234 92.11910247802734 L-39.597286224365234 -20.880895614624023 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393655-clipPath1">
<path d="M-141.57240295410156 -20.880895614624023 L108.42759704589844 -20.880895614624023 L108.42759704589844 92.11910247802734 L-141.57240295410156 92.11910247802734 L-141.57240295410156 -20.880895614624023 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393367-clipPath1">
<path d="M-192.91152954101562 -20.880895614624023 L57.08847427368164 -20.880895614624023 L57.08847427368164 92.11910247802734 L-192.91152954101562 92.11910247802734 L-192.91152954101562 -20.880895614624023 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393106-clipPath1">
<path d="M-220.18496704101562 -31.495912551879883 L29.81503677368164 -31.495912551879883 L29.81503677368164 81.50408935546875 L-220.18496704101562 81.50408935546875 L-220.18496704101562 -31.495912551879883 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="22120393954-clipPath1">
<path d="M-90.33484649658203 -72.11845397949219 L159.6651611328125 -72.11845397949219 L159.6651611328125 40.88154602050781 L-90.33484649658203 40.88154602050781 L-90.33484649658203 -72.11845397949219 Z" />
</clipPath>
</defs>
<g text-rendering="optimizeLegibility" shape-rendering="geometricPrecision">
<path d="M56.73099136352539 33.94557189941406 L97.83484649658203 33.94557189941406 C98.42296600341797 33.94557189941406 98.89952087402344 33.469017028808594 98.89952087402344 32.88089370727539 C98.89952087402344 32.29277420043945 98.42296600341797 31.81621742248535 97.83484649658203 31.81621742248535 L56.73099136352539 31.81621742248535 C56.14287185668945 31.81621742248535 55.666316986083984 32.29277420043945 55.666316986083984 32.88089370727539 C55.666316986083984 33.469017028808594 56.14287185668945 33.94557189941406 56.73099136352539 33.94557189941406 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
</g>
<g fill="url(#22120393967-linearGradient1)" text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" stroke="url(#22120393967-linearGradient1)">
<path d="M97.83484649658203 31.81621742248535 C97.2467269897461 31.81621742248535 96.77017211914062 32.29277420043945 96.77017211914062 32.88089370727539 C96.77017211914062 33.469017028808594 97.2467269897461 33.94557189941406 97.83484649658203 33.94557189941406 L139.29806518554688 33.94557189941406 C139.8861846923828 33.94557189941406 140.3627471923828 33.469017028808594 140.3627471923828 32.88089370727539 C140.3627471923828 32.29277420043945 139.8861846923828 31.81621742248535 139.29806518554688 31.81621742248535 ZM108.12228393554688 41.038978576660156 C107.53416442871094 41.038978576660156 107.05760955810547 41.515533447265625 107.05760955810547 42.10365676879883 C107.05760955810547 42.691776275634766 107.53416442871094 43.168331146240234 108.12228393554688 43.168331146240234 L139.29806518554688 43.168331146240234 C139.8861846923828 43.168331146240234 140.3627471923828 42.691776275634766 140.3627471923828 42.10365676879883 C140.3627471923828 41.515533447265625 139.8861846923828 41.038978576660156 139.29806518554688 41.038978576660156 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
</g>
<g fill="url(#22120393664-linearGradient1)" text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" stroke="url(#22120393664-linearGradient1)">
<path d="M158.84674072265625 33.94557189941406 L190.17625427246094 33.94557189941406 C190.76437377929688 33.94557189941406 191.24093627929688 33.469017028808594 191.24093627929688 32.88089370727539 C191.24093627929688 32.29277420043945 190.76437377929688 31.81621742248535 190.17625427246094 31.81621742248535 L158.84674072265625 31.81621742248535 C158.2586212158203 31.81621742248535 157.7820587158203 32.29277420043945 157.7820587158203 32.88089370727539 C157.7820587158203 33.469017028808594 158.2586212158203 33.94557189941406 158.84674072265625 33.94557189941406 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
</g>
<g fill="url(#22120393685-linearGradient1)" text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" stroke="url(#22120393685-linearGradient1)">
<path d="M96.77017211914062 32.88089370727539 L96.77017211914062 70.74842071533203 C96.77017211914062 71.33654022216797 97.2467269897461 71.81309509277344 97.83484649658203 71.81309509277344 C98.42296600341797 71.81309509277344 98.89952087402344 71.33654022216797 98.89952087402344 70.74842071533203 L98.89952087402344 32.88089370727539 C98.89952087402344 32.29277420043945 98.42296600341797 31.81621742248535 97.83484649658203 31.81621742248535 C97.2467269897461 31.81621742248535 96.77017211914062 32.29277420043945 96.77017211914062 32.88089370727539 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
</g>
<g fill="white" text-rendering="optimizeLegibility" shape-rendering="geometricPrecision" stroke="white">
<path d="M24.574825286865234 23.566604614257812 C22.058801651000977 23.566604614257812 20.019161224365234 25.606245040893555 20.019161224365234 28.122268676757812 L20.019161224365234 37.23359680175781 C20.019161224365234 39.7496223449707 22.058801651000977 41.78926086425781 24.574825286865234 41.78926086425781 L26.572872161865234 41.78926086425781 C29.088895797729492 41.78926086425781 31.128536224365234 39.7496223449707 31.128536224365234 37.23359680175781 L31.128536224365234 45.36309814453125 C31.128536224365234 47.973506927490234 33.24468994140625 50.08966064453125 35.855098724365234 50.08966064453125 L35.995723724365234 50.08966064453125 C38.60613250732422 50.08966064453125 40.722286224365234 47.973506927490234 40.722286224365234 45.36309814453125 L40.722286224365234 37.74808120727539 C40.722286224365234 40.358489990234375 42.83843994140625 42.47464370727539 45.448848724365234 42.47464370727539 L47.745723724365234 42.47464370727539 C50.35613250732422 42.47464370727539 52.472286224365234 40.358489990234375 52.472286224365234 37.74808120727539 L52.472286224365234 28.294958114624023 C52.472286224365234 25.68454933166504 50.35613250732422 23.568395614624023 47.745723724365234 23.568395614624023 L45.448848724365234 23.568395614624023 C42.83843994140625 23.568395614624023 40.722286224365234 25.68454933166504 40.722286224365234 28.294958114624023 L40.722286224365234 35.90997314453125 C40.722286224365234 33.29956817626953 38.60613250732422 31.183412551879883 35.995723724365234 31.183412551879883 L35.855098724365234 31.183412551879883 C33.24468994140625 31.183412551879883 31.128536224365234 33.29956817626953 31.128536224365234 35.90997314453125 L31.128536224365234 28.122268676757812 C31.128536224365234 25.606245040893555 29.088895797729492 23.566604614257812 26.572872161865234 23.566604614257812 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
</g>
<g text-rendering="optimizeLegibility" font-size="20" shape-rendering="geometricPrecision" font-family="sans-serif" transform="translate(18.073849115098557,20.677932603714595)">
<text xml:space="preserve" x="0" y="19" clip-path="url(#2212039349-clipPath1)" stroke="none">H
</text>
</g>
<g text-rendering="optimizeLegibility" font-size="15" shape-rendering="geometricPrecision" font-family="sans-serif" transform="translate(30.925411615098557,31.495912441249544)">
<text xml:space="preserve" x="0" y="14" clip-path="url(#22120393129-clipPath1)" stroke="none">3
</text>
</g>
<g text-rendering="optimizeLegibility" font-size="20" shape-rendering="geometricPrecision" font-family="sans-serif" transform="translate(39.597286615098554,20.88089482971614)">
<text xml:space="preserve" x="0" y="19" clip-path="url(#22120393247-clipPath1)" stroke="none">C
</text>
</g>
<g font-size="20" fill="white" text-rendering="optimizeLegibility" font-family="sans-serif" shape-rendering="geometricPrecision" stroke="white">
<path d="M148.11244201660156 23.769567489624023 C145.59642028808594 23.769567489624023 143.55677795410156 25.809207916259766 143.55677795410156 28.325231552124023 L143.55677795410156 37.43655776977539 C143.55677795410156 39.95258331298828 145.59642028808594 41.99222183227539 148.11244201660156 41.99222183227539 L150.03236389160156 41.99222183227539 C152.5483856201172 41.99222183227539 154.58802795410156 39.95258331298828 154.58802795410156 37.43655776977539 L154.58802795410156 28.325231552124023 C154.58802795410156 25.809207916259766 152.5483856201172 23.769567489624023 150.03236389160156 23.769567489624023 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
<text x="0" y="19" transform="translate(141.57240446163382,20.88089482971614)" clip-path="url(#22120393655-clipPath1)" fill="rgb(51,51,153)" stroke="none" xml:space="preserve">N
</text>
</g>
<g font-size="20" fill="white" text-rendering="optimizeLegibility" font-family="sans-serif" shape-rendering="geometricPrecision" stroke="white">
<path d="M199.16152954101562 23.568395614624023 C196.55111694335938 23.568395614624023 194.43496704101562 25.68454933166504 194.43496704101562 28.294958114624023 L194.43496704101562 37.74808120727539 C194.43496704101562 40.358489990234375 196.55111694335938 42.47464370727539 199.16152954101562 42.47464370727539 L215.66152954101562 42.47464370727539 C218.2719268798828 42.47464370727539 220.38809204101562 40.358489990234375 220.38809204101562 37.74808120727539 L220.38809204101562 45.36309814453125 C220.38809204101562 47.973506927490234 222.50424194335938 50.08966064453125 225.11465454101562 50.08966064453125 L225.25527954101562 50.08966064453125 C227.8656768798828 50.08966064453125 229.98184204101562 47.973506927490234 229.98184204101562 45.36309814453125 L229.98184204101562 35.90997314453125 C229.98184204101562 33.29956817626953 227.8656768798828 31.183412551879883 225.25527954101562 31.183412551879883 L225.11465454101562 31.183412551879883 C222.50424194335938 31.183412551879883 220.38809204101562 33.29956817626953 220.38809204101562 35.90997314453125 L220.38809204101562 28.294958114624023 C220.38809204101562 25.68454933166504 218.2719268798828 23.568395614624023 215.66152954101562 23.568395614624023 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
<text x="0" y="19" transform="translate(192.91152588490147,20.88089482971614)" clip-path="url(#22120393367-clipPath1)" fill="black" stroke="none" xml:space="preserve">CH
</text>
</g>
<g text-rendering="optimizeLegibility" font-size="15" shape-rendering="geometricPrecision" font-family="sans-serif" transform="translate(220.18496338490147,31.495912441249544)">
<text xml:space="preserve" x="0" y="14" clip-path="url(#22120393106-clipPath1)" stroke="none">3
</text>
</g>
<g font-size="15" fill="white" text-rendering="optimizeLegibility" font-family="sans-serif" shape-rendering="geometricPrecision" stroke="white">
<path d="M96.83582305908203 75.00712585449219 C94.3198013305664 75.00712585449219 92.28015899658203 77.04676818847656 92.28015899658203 79.56278991699219 L92.28015899658203 88.67411804199219 C92.28015899658203 91.19013977050781 94.3198013305664 93.22978210449219 96.83582305908203 93.22978210449219 L98.83386993408203 93.22978210449219 C101.34989166259766 93.22978210449219 103.38953399658203 91.19013977050781 103.38953399658203 88.67411804199219 L103.38953399658203 79.56278991699219 C103.38953399658203 77.04676818847656 101.34989166259766 75.00712585449219 98.83386993408203 75.00712585449219 Z" clip-path="url(#22120393278-clipPath1)" stroke="none" />
<text x="0" font-size="20" y="19" transform="translate(90.3348455383662,72.11845375298378)" clip-path="url(#22120393954-clipPath1)" fill="rgb(51,51,51)" stroke="none" xml:space="preserve">H
</text>
</g>
</g>
</svg>
</a>

</td>
</tr>

ChemAxon d26931946c

27-01-2016 12:03:08

I couldn't find where you call mview_end() to start the applet.


I can see that the applet does not start on your site. I will try to reproduce the behavior on our server.

User 870ab5b546

27-01-2016 13:31:17










gezapeti wrote:

I couldn't find where you call mview_end() to start the applet.


I can see that the applet does not start on your site. I will try to reproduce the behavior on our server.



The applet normally starts when the setInnerHTML() step is executed, that is, when the HTML that invokes the applet is inserted into the page. Notice that there is a call to mview_end_to_string().


Note also that the applet does start on the second example on our site, in which the applet loads an MRV instead of compressed MOL. Note also that these are not the only two examples of this behavior.


We now always save drawings as MRV, never as MOL, but we still have a lot of older data that is in MOL or compressed MOL.

ChemAxon d26931946c

28-01-2016 08:54:32

Hi Bob,


The good news is that the applet actually stats in both cases.


The difference is that the width of the applet is set to 0 in case of the compressed molfile (See attached files)


I did not found the reason for this but I guess it has to do something with this:




        molParts = (mol + ' ').split('<\/MDocument>'),

 



This will return 1 in case of mol files as there is no MDocument tag in them and therefore 



numMols

will become 0.


 


Peter

User 870ab5b546

28-01-2016 13:35:45

Aha! Thanks for your help!