Dear Craig, My experience says that Jmol2.js is good for simple pages that directly code for the applets. Complex pages may fail to get converted, particularly when you want to insert the applet after page loading. For these cases the solution is to just use JSmol.min.js and edit the tags accordingly. If you have several calls to jmolButton() and the like, maybe using Jmol2.js will do, or you can add "transition" functions as Jmol2.js does, but the Jmol.getApplet() call should be inserted using the new JSmol syntax.
> As you can see in the code below, what I would like to do is to load my Jmol > applet into a DIV > after the page/document has fully loaded. I create (not shown) a DIV > dedicated to the applet and I > do the call to jmolApplet into a variable. Finally, after the page has > loaded, I'm trying to load that > variable into that existing DIV. Everything is working fine, but nothing > loads into the DIV. That should be doable using Jmol.getAppletHtml() Another trick: in some cases, window.onload is not good for these tasks and you must use jQuery equivalent, $(document).ready -- I don't know why > Any advice here? If you want to play with the page, it can be found at > <http://people.chem.umass.edu/cmartin/Jmol/KissingLoopRNA/jsindex.html> Try this: function LoadModel() { $('#Appd').html( Jmol.getAppletHtml("Appd", Info); Jmol.scriptl(Appd, "load " + pdbFileG); ); } And you may need to define or modify the Info variable (a default is provided by Jmol2.js) Info.width = '100%'; Info.height = '100%'; > And the older, functioning (and Java-only) page at > <http://people.chem.umass.edu/cmartin/Jmol/KissingLoopRNA/jsindex.html > Isn't this the same url? ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users