Mauricio Carrillo Tripp wrote:
> 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.
> 
We use this in our Jmol interface at the FLI, e.g.:
http://www.fli-leibniz.de/cgi-bin/3d_mapping.pl?CODE=1deh

If you click on the "snapshot" button in the "Graphics Window" section
you should get a new window with a snapshot of the current view.
This is done by sending the "base64" encoded image to a little perl
script on our server. The perl script uses the "MIME::Base64" package to
 decode the image (MIME::Base64::decode($data)) and sends it back to the
browser, embedded in a site-specific HTML page.

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

Regards,
Rolf

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