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 Contributor
Klamauck
Posts: 6
Registered: ‎05-16-2011
My Device: 9000

OS 6 history.back() bug - work around

 

Hello,
has anyone a work around for the history.back() bug in OS 6? I've read some post from Tneil. In this post he talks about a way to override the history.back() function with "BrowserField. But I don't know how?

 

 

Thanks in advance!


Regards,


Klamauck

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: OS 6 history.back() bug - work around

Hi Klamauck,

 

Are you using the WebWorks 2.0 SDK?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Contributor
Klamauck
Posts: 6
Registered: ‎05-16-2011
My Device: 9000

Re: OS 6 history.back() bug - work around

Hi TNeil,

yes I updated my eclipse environment 2 two days ago. And this was the first thing that I have tested. But nothing changed. I've tested it with torch sim 9800 6.0.0.227.

I use this function:
function createBackButton(lang, id) {

var html = "";
html +="<div class=\"main-panel\">"+"\n";
html +="<div class=\"panel-top-left\"></div>"+"\n";
html +="<div class=\"panel-top-right\"></div>"+"\n";
html +="<div class=\"panel-inside\">"+"\n";
html +="<div class=\"panel-nogap\">"+"\n";

html +="<div class=\"arrowList\" x-blackberry-focusable=\"true\" onclick=\"javascript&colon;history.back();\">\n";
if(lang == "de") {
html +="<span class=\"arrowListText\">Zur&uuml;ck</span>\n";
}
else{
html +="<span class=\"arrowListText\">Back</span>\n";
}
html +="<img style=\"height:11px;width:7px;\" class=\"arrow\" src=\"images/arrow.png\"/>\n";
html +="</div>"+"\n";
html +="</div>"+"\n";
html +="</div>"+"\n";
html +="<div class=\"panel-bottom-left\"></div>"+"\n";
html +="<div class=\"panel-bottom-right\"></div>"+"\n";
html +="</div>"+"\n";

document.getElementById(id).innerHTML=html;
}

##############################################

Thank you for your efforts!

Regards
Andreas