Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
sabanim
Posts: 103
Registered: ‎03-31-2011
My Device: Curve 9330
My Carrier: Verizon
Accepted Solution

Back button and Links

In my app I load a div tag from and xlmhttp request from a remote server.

 

Now my back button works great unless there is a link on the remote page. 

 

If I add a link, say to facebook, and that link is clicked my app will go to facebook.  However now my back button won't bring me back to my app.  And when the enduser hits the EndCall hardware button to leave the app, the app now only opens at facebook and I cannot get back to my app.  Unless I use the hardware menubutton and close the app. 

 

Now the funny thing is If I inclued an alert in my back key override it works?!!!  

 

Works:

blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
					function()
					{
						alert("");
						location.href = 'Home.htm';
					});

 Not Work

blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
					function()
					{
						
						location.href = 'Home.htm';
					});

 Please Help ME

Please use plain text.
Administrator
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Back button and Links

Some back button (hardware key) issues were resolved in version 2.3.1 of the WebWorks SDK.  Can you confirm you are using this version, and if not please upgrade and try again?

 

https://bdsc.webapps.blackberry.com/html5/download/sdk

 

Otherwise, there seems to be a timing issue that we need to investigate further.

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Trusted Contributor
sabanim
Posts: 103
Registered: ‎03-31-2011
My Device: Curve 9330
My Carrier: Verizon

Re: Back button and Links

Thank you, I was using the last sdk. I have updated and it seems to be working fine. Does Blackberry not email all developers about new sdks like Apple or Droid? If so how do you get on the mailing list?
Please use plain text.