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
New Developer
jschuhr
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.
New Developer
jschuhr
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
lusancea
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
tornadotrev
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
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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.
Found a bug? Report it using Issue Tracker
New Developer
vinho
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
vinho
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.