Thanks for the info, I'll put in practice, although I would also like to
know how
to implement the hack for MSIE, could you share that too (or some example
pages) please.

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<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.
-------------------------------------------------------------------------
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

Reply via email to