Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13902] BlackBerry : The webview methods like reload, goback, go forward etc do not work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-05-28T00:12:57.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsmodule_webview, qe-3.3.0, qe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-05-17T18:05:15.000+0000
Updated2017-03-09T07:58:51.000+0000

Description

Description: 1. Create an app with a webview which implements methods like reload, goback, go forward etc 2. Build & run the app for BB simulator or device 3. After the app launch do a reload, goback , go forward etc. Actual results: 1. These methods do not work in BB , they work fine in android & IOS. Expected Results: 1. These methods should work in parity with other platforms

Comments

  1. Pedro Enrique 2013-05-20

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/42 Added missing methods

    Code:

       var win = Titanium.UI.createWindow({  
          backgroundColor:'#000'
       });
       
       var toolbar = Ti.UI.createView({
       	bottom: 0,
       	height: 35,
       	backgroundColor: '#ccc'
       });
       
       var back = Ti.UI.createButton({
       	left: 0,
       	width: 50,
       	title: 'back'
       });
       
       var reload = Ti.UI.createButton({
       	width: 50,
       	title: 'reload'
       });
       
       var fwd = Ti.UI.createButton({
       	right: 0,
       	width: 50,
       	title:'fwd'
       })
       
       toolbar.add(back);
       toolbar.add(reload);
       toolbar.add(fwd);
       
       var webview = Ti.UI.createWebView({
       	url: 'http://javascript.crockford.com',
       	bottom: 35
       });
       
       back.addEventListener('click', function(){
       	if(webview.canGoBack()) {
       		webview.goBack();
       	}
       });
       
       reload.addEventListener('click', function(){
       	webview.reload();
       });
       
       fwd.addEventListener('click', function(){
       	if(webview.canGoForward()) {
       		webview.goForward();
       	}
       });
       
       win.add(webview);
       win.add(toolbar);
       win.open();
       
  2. Lokesh Choudhary 2013-05-22

    Verified the fix & the webview methods reload,goback,goforward work as expected. Thus closing the ticket. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130521153706 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
  3. Olga Romero 2014-05-27

    Back and forward are not working. Tested with: Mac osx 10.9.3 Mavericks Appcelerator Studio, build: 3.3.0.201405211748 Titanium SDK, build: 3.3.0.v20140524224144 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-beta npm@1.3.2 titanium@3.3.0-beta titanium-code-processor@1.1.1 Device: BB Z10 (10.2.1)
  4. Pedro Enrique 2014-05-28

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/250
  5. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source