Embedding MarvinJS 15.6 vs 16.10

User cbb759276f

16-11-2016 16:44:25

Hi


I upgraded our MarvinJS setup from 15.6 to 16.10. With 15.10, MarvinJS was displayed in the top right corner of the web page, with no border/backgound.


However, in 16.10, the embedded MarvinJS now appears within a green border/background, even though the HTML code for our page is the same.


Any suggestions how I can embed MarvinJS with no background/border as before?


Thanks!


Code:

















































































































<!DOCTYPE html>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Marvin JS - Sketch a molecule</title>
<link type="text/css" rel="stylesheet" href="../css/doc.css" />
<link type="text/css" rel="stylesheet" href="../js/lib/rainbow/github.css" />
<script src="../js/lib/jquery-1.9.1.min.js"></script>
<script src="../js/lib/rainbow/rainbow-custom.min.js"></script>
<script src="../gui/lib/promise-1.0.0.min.js"></script>
<script src="../js/marvinjslauncher.js"></script>
<script>
var marvinSketcherInstance;

var buttonAttributes;

[...]

<body>
<iframe id="sketch" src="../editorws.html" data-toolbars="education"
style="overflow: hidden; min-width: 500px; min-height: 450px; "></iframe>
<br><img src="powered.png" />
</body>

</html>

ChemAxon 76c88f5366

16-11-2016 23:22:33

Hi Tim,


Marvin JS package originally contains a doc.css file for the examples. If you overwrote this file, it can happen, that the original one was cached by your browser, and it did not load the new one.
Could you try to open this page in incognito mode, or in a browser where you never opened this page before? (Or could you empty your browser's cache?)


Does this problem still exist?


Please, let us know your findings.


Best regards,
Eszter 

User cbb759276f

17-11-2016 10:44:25

Hi Eszter


If I clear the cache or load the page in an incognito tab, then the same green border appears.


 


However, I tried copying the old css.doc (v15.60) across to the server to overwrite the new css.doc (v16.10), and now the border has disappeared.


 

ChemAxon 76c88f5366

17-11-2016 10:56:23

Hi Tim, 


I am glad to hear that the issue has been solved.


Should you experience more difficulties, please do not hesitate to contact us.


Best regards,
Eszter