Quentin,

Create a button that, onclick, runs the Jmol scripting command

write ?.jmol

That should do the trick. I'd encourage you to get familiar with the new 
object-oriented framework for Jmol loading and scripting, but using the older 
system this would look something like

<button onclick="jmolScript('write ?.jmol');">Download Jmol</button>

Cheers, Mike

On Nov 7, 2012, at 9:31 AM, Quentin Delettre <quentin.delet...@gmail.com> wrote:

> Dear Jmol users,
> 
> I would like to create a download button on my html page, so users will 
> be able to download the molecule currently displayed. How can i do that ?
> 
> Thanks
> 
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to