I have the problem, that if you have two or more dialog calls in a process, you cannot use the history back button of the browser, as soon as you are past the first dialog. In this example, as soon as you reach Education, it does not work anymore. I think the reason for this is, that the dialog instance is closed, when you leave a dialog and move further (Dialog Close event). I think that this is ivy specific, becuase as far as I know, it works properly with plain PF/JSF. In my opinion, the back button should work allways, becaus of the usability, and the developer should take care of what happens with data and so on. Anyway, does anybody have a solution for this? asked 26.08.2015 at 08:47 Marcel von Wyl |
Here is a work around - You can deactivate the back button. Here is the code to add to the HTML page... It works in Html Dialogs. <script type="text/javascript"> //for old browsers window.location.hash = "no-back-button"; window.location.hash = "Again-No-back-button"; window.onhashchange = function() { window.location.hash = "no-back-button"; } //for browsers that support HTML5 history.pushState(null, null, 'no-back-button'); window.addEventListener('popstate', function(event) { history.pushState(null, null, 'no-back-button'); }); </script>answered 18.09.2015 at 04:53 enricojl Sorry for hijacking this issue - but would the browser back button work if there is a "path" defined from "Education" to "New Request" ?
(17.02.2020 at 05:00)
John Moser
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 26.08.2015 at 08:47
Seen: 4,709 times
Last updated: 17.02.2020 at 05:00
Is there a way to deactivate the back button when we are in a dialog?