You could also pick up the file data and save that:
Var x = load(_modelFile)
write var x ?
On Wed, Nov 7, 2012 at 9:45 AM, Evans, Michael James
<evan...@illinois.edu>wrote:
> 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
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
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