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

inject html into a webview

$
0
0

Hi all, I am wondering if it is possible to inject html into a webview in titanium. What I mean is, could I have the following webview:

var obitWebView = Titanium.UI.createWebView({
    url:obitURL,
    scalesPageToFit:false,
    left: 5,
    right:5,
    showHorizontalScrollIndicator:false,
    showVerticalScrollIndicator:true,
    zIndex: 8
});
And then somehow inject the following html into it:
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
My guess is no, but I'd love to be corrected. My thought is I may have to do something like, use a html parser to grab the entire page and add my html to it and then use the html property of the webview instead of the url property? The reason I need to do this is to disable sideward scrolling on Android, nothing else has worked. It has on iOS but not Android. All help appreciated

Viewing all articles
Browse latest Browse all 7655

Trending Articles



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