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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 1
Registered: ‎05-04-2011
My Device: OS5 web browser
My Carrier: simulator

How to work with hash based URL in BB OS5 browsers.


I am developing a web app which dynamically alters the hash location in the URL according to the app requirements.

I am using window.location.hash to alter this. It work fine across all the browser. For any hashchange in address i have used hashchange event which does the required action after detecting hashchange.

But these events are not working in Blackberry OS5 browsers. For testing i am using BB OS5 9700 simulator's browser. Below i have added sample code.

<title> Address</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="jquery-1.5.min.js"></script>
<script type="text/javascript">
(document).ready(function() {

(window).bind('hashchange', function() {




In the above sample code if i have given url http://test.stk.net then it will be changed to http://test.stk.net/#issue1 and it will alert the given value on hashchange. It is working fine for browsers e.g Mozilla, chrome, safari, mobile safari, android native browser, But in BB OS5 browsers (e.g BB 9700 simulator's browser) hash change in address is not working.

Can anyone tell me are these  javascripts  are supported by BBOS5  browsers Or an alternative way to change hash part in URL in BB browser using javascript.


Any help will be appreciated. Thanks