[TIMOB-5570] MobileWeb: not working event 'error' in webView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-27T10:18:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Chris Barber |
Created | 2011-06-07T00:56:36.000+0000 |
Updated | 2017-03-03T23:23:41.000+0000 |
Description
Can't represent event 'error' in webView. Event 'load' fired when loading any type of URL.
var win = Ti.UI.currentWindow;
var tf = Ti.UI.createTextField({
left: 10,
top: 5,
width: 320,
height: 40
});
var webView = Ti.UI.createWebView({
top: 50,
left: 10,
width: 300,
height: 300,
url: 'google.com/404',
backgroundColor: 'red'
});
win.add(tf);
win.add(webView);
tf.addEventListener('return',function(){
webView.url = tf.value;
});
webView.addEventListener('beforeload', function(){
alert('Page loading begins');
});
webView.addEventListener('load',function(){
alert('Page loaded');
});
webView.addEventListener('error',function(){
alert('page cannot be load');
});
still not working
This issue has been fixed by TIMOB-7226.
Closing ticket as MobileWeb is no longer supported.