Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5570] MobileWeb: not working event 'error' in webView

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-01-27T10:18:09.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeChris Barber
Created2011-06-07T00:56:36.000+0000
Updated2017-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');
});

Comments

  1. Maxim Negadaylov 2011-06-07

    still not working
  2. Chris Barber 2012-01-27

    This issue has been fixed by TIMOB-7226.
  3. Lee Morris 2017-03-03

    Closing ticket as MobileWeb is no longer supported.

JSON Source