WebView, browser-like functionality
I want to make my webview have this sort of functionality:
button1.addEventListener('click',function(e){
webView.load(url);
});
But unfortunately there is no "load" function for the web view. Any suggestions on making this work?
6 Answers
-
webView.url='http://google.com'
-
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.WebView-object
-
Direct to the function/function name please? I must be blind.
-
url : "the url to the web document. this property will change as the content of the webview changes (such as from internal hyperlinks, etc)"
-
Yes, I've been doing that, but the events associated such as 'load' and 'error' are not firing.
-
Okay, okay, okay. I got it. I was being an idiot. Sorry for wasting your time everybody!