Gary, I need just a bit more information. I put your code into an HTML file, changed the src to my Jmol.js, and everything loaded fine. I don't understand the following:
Gary Kedziora wrote: >jmolSetDocument(htmlPane.contentDocument); >htmlPane.contentDocument.write(ahtmlString); > > > The thing to do is jmolSetDocument(0) to turn off document writing, then use var sHTML = jmolAppletInline(400, current_molecule); and send the sHTML wherever you need it. >It executes the Jmol JavaScript ok and hangs after the JS. This same >HTML works with htmlPane.setAttribute using a file. I've tried >various combinations of absolute paths and they don't work. > > > I'm not understanding the above statements. >It seems to be a problem with the Java interface. Before I dig into >the Java, I was wondering if people with more experience with this >sort of thing could offer some advice. > > > I doubt it. I think it's just something you are missing relative to the writing to the page. >Thanks, >Gary > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys-and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Jmol-developers mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-developers > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
