[TIMOB-2023] Android: Webview bindings fail when linking to a second page
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:57:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | Android |
Labels | android, defect |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:08:22.000+0000 |
Updated | 2011-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();
(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...
(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...
g1 and 2.2 sim 1.5.0.o2c264