Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to make frames nested window view work with more content #152

Open
garyoliver opened this issue Sep 24, 2016 · 3 comments
Open

A way to make frames nested window view work with more content #152

garyoliver opened this issue Sep 24, 2016 · 3 comments

Comments

@garyoliver
Copy link

garyoliver commented Sep 24, 2016

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.

@michaelhagedon
Copy link
Member

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?

@garyoliver
Copy link
Author

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 - [email protected]
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 [email protected]
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//issues/152#issuecomment-249701884, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVGKrbaYTTqCQ6OpoQP80YCXrUHDzOyPks5quDf3gaJpZM4KFwac.

@michaelhagedon
Copy link
Member

Cool!

If someone fleshed this out more, I’d definitely be interested in reviewing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants