Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-13 Thread Robert Hanson
nice. Yes, saving the state would be more general: Jmol.getPropertyAsString("stateInfo") Otis, what events exactly are you using for triggering the save and restore scripts? > var stash = localStorage.getItem("chemagicTEMP”); > if (stash == null || stash == undefined || stash == "") { stash =

Re: [Jmol-users] JSmol on Safari Mac Version 9.0.3 (11601.4.4)

2016-02-13 Thread Otis Rothenberger
Bob, I do it with explicit links that leave the page, but it should work with onbeforeunload to automate it. The return is taken care of in the app (model kit). The return to model kit is handled in the Jmol ready callback. If the special memory location is not null, then the memory data is