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

2016-02-12 Thread Otis Rothenberger
For what it’s worth, here is the code to use browser local storage to “stash” a model when you leave a JSmol page. I’m using the molfile, but Jmol state/restore should also work - See note at end of email. An extension of the approach should also allow you to save/reset JavaScript variables that

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

2016-02-12 Thread Robert Hanson
On Fri, Feb 12, 2016 at 1:52 PM, Rolf Huehne wrote: > > And the "back" function actually isn't totally disabled. At least in > Firefox and Safari (not tested in other browsers) the "click and hold" > function to select a specific step in the history still works. > > How about that. I never knew a

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

2016-02-12 Thread Rolf Huehne
Am 12.02.16 um 20:29 schrieb Robert Hanson: > Hmm. I don't know if I like that as a default. People don't like > surprises, and I really dislike it personally when a page disables the > "back" function. > ​ I wasn't suggesting this as a general default. With a complex tool like the 'Jena3D Viewer'

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

2016-02-12 Thread Robert Hanson
Hmm. I don't know if I like that as a default. People don't like surprises, and I really dislike it personally when a page disables the "back" function. ​ Bob -- Site24x7 APM Insight: Get Deep Visibility into Application Pe

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

2016-02-12 Thread Rolf Huehne
On 02/12/2016 02:33 AM, Otis Rothenberger wrote: > It turns out that there is a JQuery solution to the Safari back/forward > browser cache issue: > > $(window).bind("pageshow", function(event) { > if (event.originalEvent.persisted) { > window.location.reload() > } > }); > > http