Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2023] Android: Webview bindings fail when linking to a second page

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:50.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:08:22.000+0000
Updated2011-04-17T01:57:50.000+0000

Description

If the first page loaded into a Webview then links to a second page and you "click" that link, the second page's bindings (for Ti.API and Ti.App) don't seem to load at all, or take very long to load. To to see the failcase, use this app.js. It will access two files on the web. When you click the link, you'll see that the second page's Ti doesn't load.

Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#fff',
    fullscreen: true,
    exitOnClose: true
});

Ti.App.addEventListener('my_custom_event', function(){
    Ti.UI.createNotification( {
        message: 'The "my_custom_event" was fired by the remote page.',
        duration: Ti.UI.NOTIFICATION_DURATION_LONG
    }).show();
});

var url = "http://dl.dropbox.com/u/3756445/pageone.html";
var wv = Ti.UI.createWebView({url: url}) ;
win.add(wv);
win.open();

Comments

  1. Bill Dawson 2011-04-15

    (from [d5e02d502752415c861c30693d3d82d700d37330]) [#2023 state:fixed-in-qa] Move bindings from page load to page finished - page load doesn't seem to work for subsequent pages past the first one (i.e., linked pages) http://github.com/appcelerator/titanium_mobile/commit/d5e02d502752415c861c30693d3d82d700d37330"> http://github.com/appcelerator/titanium_mobile/commit/d5e02d5027524...

  2. Bill Dawson 2011-04-15

    (from [cacd5269b42990edfb2cd4f9c4a831785fbf5ecd]) [#2023 state:fixed-in-qa] Move bindings from page load to page finished - page load doesn't seem to work for subsequent pages past the first one (i.e., linked pages) http://github.com/appcelerator/titanium_mobile/commit/cacd5269b42990edfb2cd4f9c4a831785fbf5ecd"> http://github.com/appcelerator/titanium_mobile/commit/cacd5269b4299...

  3. Thomas Huelbert 2011-04-15

    g1 and 2.2 sim 1.5.0.o2c264

JSON Source