Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 68

Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
11/16/13 03:47 AM (12 years ago)

device back button get two step back

I have used simple menu in my app. Each menu linked to and HTML Doc. some of the html doc contains nice buttons which are linked to another HTML docs. I open simple menu, then one of HTML Doc containing buttons, then tabbing these buttons get me to final page which is a HTML page. Here when I tab device back button, it get me back to simple menu list (two step back). If not complicated, please instruct me how to address this problem. It worth mentioning that I have not used HTML pro for those buttons because it causes the text on the button get underlined and highlighted. I wonder if you do have solution for HTML pro as well. I sued "text-decoration: none". it didn't worked. regards Nsaya
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
11/16/13 07:35 AM (12 years ago)
What is happening is that the Back button you are tapping is native. It takes you back to the latest native page (the menu). What you need to do is hide the native back button or hide the nav bar. I had this issue, what I did was make a top nav bar in html that matched the native nav bar. I then integrated a HTML back button (that looks the same as native) to navigate within the HTML. Alternatively you can you the option to have the browser nav bar at the bottom. Hope it helps, Farcat
 
xparte
Aspiring developer
Profile
Posts: 50
Reg: May 08, 2012
location unknow...
2,450
like
11/16/13 05:36 PM (12 years ago)
I have that issue for a few of my pages too so have just switched on the browser back button for page scrolling. Document Behaviour -> Show Browser Back Button ..which will work like you want.
 
Nsaya
I hate code!
Profile
Posts: 65
Reg: Jul 15, 2013
Kabul
2,400
like
11/16/13 10:24 PM (12 years ago)
Dear Farcat and Xparte, Thank you for the instucitions, Yes you both are right we can solve this problem through navbar. I have an app whose code was modified by another developer. Now it works and the device's back button return one step back. I tried to find what changes he brought, but could not understand. I want my html page to be in full screen. Navbar occupy some space. In smaller devices we face limitation of space. If I find, for sure, I will paste here. regards Nsaya
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.