hi;
i have a WebView instance assigned to webview thats rendered within a window.webview gets initialized with url property (points to a remote page). i also have a load event handler. in the load, i wish to examine the actual html that's the result of the GET from specified url.
when i look at webview.html it is undefined!
i cannot use httpclient or such to look at the responseText... and thought that WebView.html would be sufficient.
is this a bug ? are there other things i need to configure before i can look at the loaded html page?
please advise.
1 Answer
this works for me (using same sdk version), both the event.source.html and the webView.html (be careful with capitalization).
Capture load event:
webView.addEventListener('load', function(evt){ Ti.API.info(evt.source.html); Ti.API.info('+++++++++++++'); Ti.API.info(webView.html); });
Your Answer
Think you can help? Login to answer this question!