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
o...@chemagic.com
http://chemagic.com
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users