Open garyoliver opened 8 years ago
Neat idea, @garyoliver! I don't believe we've discussed it in quite that way, but I'd be interested in seeing how that would work. Of course, the server would have to be configured for HTTPS, and we'd have to be able to read the location of the iframe. Have you experimented with this at all?
I haven't experimented with it and I may not have time but a quick check tells me that if you have an onload= event on an iframe it then can run a script every time the iframe loads a new location.
And a javascript can also read the current URL of an iframe document.getElementById("my_iframe").contentWindow.location.href
With that information the parent frames document should be able to reload itself without losing it's place.
I'm not sure how you keep a quiz & questions data going?
You might keep them as parameters attached to the end of the URL without refreshing the window in html5 browsers with the pushState or replaceState method as noted below. That way when the frames document reads the URL of the guide side it already has the information that can be read by the page as it reloads.
window.history.pushState("object or string", "Title", "new url");
http://stackoverflow.com/questions/32828160/appending-parameter-to-url-without-refresh
Gary Oliver - oliverg@newpaltz.edu Tech Support Staff Sojourner Truth Library State University of New York New Paltz 300 Hawk Dr New Paltz, NY 12561-2493 Working Hours : OFF: Sunday & Monday Tuesday -Thursday: 11am to 7pm Friday & Saturday: 1pm to 9pm
845-257-3704
From: Michael Hagedon notifications@github.com Sent: Monday, September 26, 2016 5:24 PM To: ualibraries/Guide-on-the-Side Cc: Gary Oliver; Mention Subject: Re: [ualibraries/Guide-on-the-Side] A way to make frames nested window view work with more content (#152)
Neat idea, @garyoliverhttps://github.com/garyoliver! I don't believe we've discussed it in quite that way, but I'd be interested in seeing how that would work. Of course, the server would have to be configured for HTTPS, and we'd have to be able to read the location of the iframe. Have you experimented with this at all?
You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ualibraries/Guide-on-the-Side/issues/152#issuecomment-249701884, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVGKrbaYTTqCQ6OpoQP80YCXrUHDzOyPks5quDf3gaJpZM4KFwac.
Cool!
If someone fleshed this out more, I’d definitely be interested in reviewing it!
Make guide on the side always load itself with the same SSL state as the page it loads in the frame. If the page loaded in the frame changes reload itself with the same SSL on/off state.
Is that something being discussed already I haven't seen it discussed.
I suppose you might include a new PHP that would test for POST variables. And have GOS send it's place and other collected test data and what page is in the frame as a post when SSL state changes.