Browser Back Button
-
- New User
- Posts: 15
- Joined: Fri Sep 09, 2011 3:35 pm
- First Name: Larry
- Last Name: Curcio
- Company Name: Banyan Air Service
- Phone: 9544935444
- Contact:
Browser Back Button
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.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Browser Back Button
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.
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.
-
- New User
- Posts: 15
- Joined: Fri Sep 09, 2011 3:35 pm
- First Name: Larry
- Last Name: Curcio
- Company Name: Banyan Air Service
- Phone: 9544935444
- Contact:
Re: Browser Back Button
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.
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: Browser Back Button
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.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Browser Back Button
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.
It's available for download now if you'd like to try it out.
Who is online
Users browsing this forum: No registered users and 3 guests