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
Make back button of browser close overlay pane in HTML panels #113
Comments
Should this also work for plots? There would be (at least) 2 possibilities how to implement this:
|
I think it is not necessary for switching the shown columns inside a plot (users do not expect drop-down fields to affect history), but for switching between different plot types (by clicking on links) it could be done. The second solution was what I had in mind, although I do not know if we maybe can do this without modifying the url (and keep more state like plot configuration than what is encoded in URL). |
Seems like this is easily possible: https://developer.mozilla.org/de/docs/Web/Guide/DOM/Manipulating_the_browser_history#Adding_and_modifying_history_entries We can store arbitrary state, and we do not need to fiddle with the URL. |
@PhilippWendler can you tell me how to test pushState method on my local machine. Because whenever I try to test it on localhost it gives me this error - "SecurityError: The operation is insecure." |
Sorry, I never used this function myself. I suggest to look at its documentation and maybe StackOverflow. This question seems relevant. |
Might be solved using the technique from #483? |
Some users expect to be able to click on a link (such as the log files in tables) and use the back button to get back to the original page, but because we open the target of the link in an overlay pane with JavaScript, this is not possible. As it is possible to manipulate the back button of the browser through JavaScript, we should do so and make the back button close the overlay pane (or, even better, let the overlay pane show the previous content if there is one).
The text was updated successfully, but these errors were encountered: