Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

evalJS makes trouble SDK 3.2.0.GA

$
0
0

Here my simple code:

var win = Ti.UI.createWindow();
var webview = Ti.UI.createWebView({
    url : 'http://www.appcelerator.com/',
});
win.add(webview);
win.open();
webview.addEventListener('load', function(e) {
    var val = webview.evalJS("document.getElementById('menu-item-3062').innerHTML");
    console.log(val);
});
On console I see null and this mesage TiWebViewBinding: (KrollRuntimeThread) [3323,8996] Timeout waiting to evaluate JS.

JS- function alert() runs fine. Any ideas?

Rainer


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>