Thanks, Otis - I had heard about local storage but had not looked into how it works.
On Sat, Aug 16, 2014 at 7:55 PM, Otis Rothenberger <[email protected]> wrote: > This may be common knowledge, but I sure as heck did not know about it > until this morning. So I'll pass it on just in case there are others who > don't know about HTML5 Local Storage. > > The latest versions of common HTML5 browsers have an HTML5 feature called > Local Storage. The feature stores text name-value-pairs to local browser > storage - just like cookies. BUT the allowed storage is huge compared to > cookies. Typically, it's about 5MB per domain - cookies on steroids. These > "cookies" persist until the user purges them manually. They can also be > cleared by JavaScript on the page. > > The following two lines of code show how simple this is to implement with > Jmol state: > > JavaScript > localStorage.setItem("state1", Jmol.getPropertyAsString(jmolApplet0, > "stateinfo")) > > followed by > > JmolScript > script javascript:localStorage.getItem("state1") > > All kinds of things come to mind here. An in class Jmol/JME note book > comes to mind immediately. > > Sorry if this is old hat, but like I said, this is all new and kind of > wonderful to me. > > Otis > > -- > Otis Rothenberger > [email protected] > http://chemagic.com > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jmol-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, Department 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
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

