Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: Release 2.1.0
-
Fix Version/s: Release 3.1.0, 2013 Sprint 02 API, 2013 Sprint 02, 2013 Sprint 05 API, 2013 Sprint 05
-
Component/s: Android
-
Environment:
Titanium Studio: 2.1.0.201206151953
Titanium SDK: 2.1.0.v20120615184153
Android Device: Android Emulator 2.2, Android Tab (V3.2), Galaxy Nexus (V4.0.2)
Runtime: v8
Description
A webview with HTML property (containing the HTML content of the webview) loads successfully but does not reload.
The behavior occurs since 2.0.1. This worked fine on 1.8.2
Steps to reproduce:
1. Create an application with code below
2. Launch app on android device
3. Click on "Remove and release and add webview" button
Actual: After step 2, the webview launches successfully
After step 3, the webview does not reload
Expected: The webview with HTML content should reload.
var _window = Ti.UI.createWindow({
|
backgroundColor:'#000'
|
})
|
var webview=Ti.UI.createWebView({
|
//url:'http://www.google.com',
|
html:'<html><body>test</body></html>',
|
top : 0,
|
height : 200
|
});
|
|
webview.addEventListener('load', function() {
|
alert('The webview is loaded!');
|
});
|
|
var b2 = Ti.UI.createButton({
|
title : "remove and release and add webview",
|
top : 280
|
});
|
b2.addEventListener("click", function() {
|
_window.remove(webview);
|
webview.reload();
|
_window.add(webview);
|
});
|
|
_window.add(webview);
|
_window.add(b2);
|
_window.open();
|
Attachments
Issue Links
- relates to
-
TIMOB-13059 Android: WebView: remove requirement to set baseURL
- Closed
-
TIMOB-13145 iOS: Setting WebView HTML contents directly fails to load local JavaScript file on device
-
- Closed
-