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


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.


Reply
New Developer
Posts: 2
Registered: ‎12-15-2008
My Device: Not Specified

Bold Browser Broken; history.go(-1);

[ Edited ]

Has anyone else encountered the blatant problem with the Blackberry Bold browser where the history.go() and history.back() methods are ignored? All the other javascript on my site works fine except for the following -

 

<a href="javascript~history.go(-1)">Back</a>

 

I've even tried defining a standalone function, but it doesn't work either -

 

<html><head><script type="text/javascript">function blah() { history.go(-1); alert('hello world'); }</script></head>

<body><a href="javascript~blah()">Back</a></body>

</html>

note: the tildes (~) should be colons, but the forums doesn't like colons.

 

The alert() works, but not the history.go(); what gives?!?

 

Message Edited by jschuhr on 12-15-2008 02:10 PM
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

Yeah, I think this was fixed in the 4.7 browser. window.back() and window.forward() still works in 4.6, I think.
Highlighted
New Developer
Posts: 2
Registered: ‎12-15-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

Unfortunately, the window.back() doesn't work either in 4.6; any other ideas?
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

Hmm.. how about "window.location = document.referrer;"? It should work for back, but it won't get you forward.
New Developer
Posts: 1
Registered: ‎12-16-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

That won't work either because then you will be locked in a loop between the two pages...if someone uses the back button as their main method of navigation.
New Developer
Posts: 2
Registered: ‎10-27-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

Did anyone find out if this was fixed on the Bold? Or any word from BlackBerry about which version of the OS this was fixed in?

 

BlackBerry Development Advisor
Posts: 15,888
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Bold Browser Broken; history.go(-1);

This is fixed in BlackBerry handheld software version 4.6.1.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Developer
Posts: 28
Registered: ‎08-19-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

I can't see any fix for history.go(-1), history.back(), and window.back() on 4.6.1 (simulator).

It doesn't work when I add "javascript&colonhistory.back()" and the above functions on my hyperlink. Any idea?

New Developer
Posts: 28
Registered: ‎08-19-2008
My Device: Not Specified

Re: Bold Browser Broken; history.go(-1);

Hi, anyone knows how to go back to previous page?

javascript history.go(-1), history.back(), window.back() are not work.

but URL referrer will make a loop if I press Back link twice.

(I've enable javascript on BB browser, but not work on Bold and simulator.)

Thanks.