Page 1 of 1
Browser Back Button
Posted: Mon Dec 03, 2012 3:55 pm
by BanyanAir
Is there a way to turn on the browser back button and assign it an RPG indicator? Like the F12 or F3 function key? Many of our users try to click this to go back a screen and get frustrated when it doesn't work.
Re: Browser Back Button
Posted: Mon Dec 03, 2012 9:48 pm
by Scott Klement
Well, PUI uses JavaScript in the browser to build your screens. So, if you can find a way to handle (or maybe disable) the back button with JavaScript, that solution should work in PUI, too.
I did some quick Googling around, and found pages like this:
http://viralpatel.net/blogs/disable-bac ... avascript/
What it basically says is there's really no great way to handle the back button. But, what you can do is disable it. That can be done in one of two ways:
1) Launch your PUI session (or Genie session) in a new window. That way, the back button will be grayed out to begin with.
2) Use window.history.forward to disable it. You could put the code for window.history.forward in a js file in the PUI userdata/custom/js directory, or in the custom.js file of Genie, and disable the back button that way.
Maybe my colleagues have some better ideas, though... I could ask them tomorrow.
Re: Browser Back Button
Posted: Tue Dec 04, 2012 2:28 pm
by BanyanAir
Scott, I am really looking for a way to ENABLE the button. By default it is disabled. What I am trying to do is enable it and assign it to an indicator so that the RPG program can determine what to do when it is pressed.
Re: Browser Back Button
Posted: Mon Dec 17, 2012 1:22 am
by Alex
We will be releasing Profound UI 4.2.0 shortly. In this release, we have added a new "back button" screen level response property to handle the browser's back button. Unfortunately, this feature will only work in browsers that support the HTML5 history.pushState() method. At this time, Google Chrome and Mozilla Firefox do support this, but Internet Explorer will not support it until version 10.
Re: Browser Back Button
Posted: Mon Dec 17, 2012 7:12 pm
by Scott Klement
Profound UI 4.2.1 has now been released, and it contains the update that Alex describes, above.
It's available for download now if you'd like to try it out.