Mauricio Carrillo Tripp wrote: > I'm sorry, I couldn't find an answer for this: > can the applet export an image (jpg, png, etc) of the > current view?
The applet can export a JPG in an ASCII-encoded "base64" way that can be read by some browsers (Firefox, but not MSIE). See http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm and click on "image" under the applet. This does not work with Microsoft Explorer unless you have your page send that back to your server and have the server repackage it and send it back as a file. Some sites do this. The command that gets the job done is: var image = opener.jmolGetPropertyAsString("image") and the way to put this in a page is: var image = jmolGetPropertyAsString("image") document.getElementById("imageDiv").innerHTML ='<img src="data:image/jpeg;base64,'+image+'">' where there is <div id=imageDiv></div> somewhere on that page. > Thanks. > > -- > 0 | Mauricio Carrillo Tripp, PhD > / | Department of Molecular Biology, TPC6 > 0 | The Scripps Research Institute > \ | 10550 North Torrey Pines Road > 0 | La Jolla, California 92037 > / | [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > 0 | http://www.scripps.edu/~trippm > <http://www.scripps.edu/%7Etrippm> > > ** Aut tace aut loquere meliora silentio ** > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >------------------------------------------------------------------------ > >_______________________________________________ >Jmol-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

