iOS Question webview.LoadHtml does not show google translate

John Woodsmall

Active Member
Licensed User
Longtime User
When the web page is run as "WebView5.LoadUrl(target0) it works fine (it shows google translate)
when the web page is run as "WebView5.LoadHtml(results_text) it fails...does not show google translate.
Note: the other parts of the pages work the same.

[
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'UA-35172899-1'}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script><BR>
]
 
Top