B4A Library WebkitLibrariesSet (successor to UltimateWebView) - Ivica Golubovic (first post)    Apr 25, 2023   (1 reaction) WebChromeClient is part of the Webkit set of libraries and is used as a plugin for the native WebView. It cannot be used as a Chrome browser. You have to add the webview object and then initialize the WebChromeClient where you pass the WebView as a parameter. B4A Library WebViewExtras - warwound    Oct 16, 2023   (36 reactions) If you pass false and then the Sub tries to modify your activity UI you will get an exception.
Does your javascript require a return value from your Sub?
If the answer is yes then the Sub MUST NOT modify the activity UI.
If CallSub is excuted with callUIThread set to true then no values will be ret B4A Question How disable alert message in Webview? - miguelcleman (first post)    Feb 12, 2020   (1 reaction) Finally,
This code works to me :
WebViewClient1.Initialize("WebViewClient1")
WebViewExtras1.SetWebViewClient(WebViewClient1)
WebViewExtras1.ExecuteJavascript("window.alert = function() {};")
p.s. : changeded "WebChromeClient1" to "WebViewClient1"
Thanks B4A Question Permission request in a webview - drgottjr (first post)    May 14, 2024 webchromeclient is a kind of extension for webview. it handles tasks that webview is not designed to do.
one of these tasks has to do with asking the user for runtime permission: camera, location, etc. a dialog
pops up on the browser screen asking for permission to use these features. apparently, B4A Question Web View not running JavaScript - drgottjr (first post)    Feb 23, 2020 plus you don't have to modify your html and javascript, so everything works across platforms. webchromeclient is just a setting for webview to allow alerts. but, note: a webview is a subset of a browser. not everything that works in a browser works in a webview (alert being a case in point). be B4A Question WebViewExtras (File Upload to Php) - josejad (first post)    Apr 28, 2021   (2 reactions) Hi:
Where did you get the example? In order to test it.
When you start typing, you get the help with the parameters you need.
As you can see, addWebChromeClient needs two parameters.
It should be
WebViewExtras1.addWebChromeClient(WebView1, "WebView1") 'for example
112409 B4A Question ChromeClient ? - drgottjr (first post)    Apr 17, 2020 webview is the view. webviewextras are the, ummm, extras. you add the extras to the view when you initialiaze them B4A Question Detect keypress regardless of focussed view - drgottjr (first post)    Jan 06, 2022   (2 reactions) i show it in the log. i could
do something else. i could have chosen a different
key. in fact, under normal circumstances, the
magic key would not be one used in normal typing,
otherwise you would not be able to type the letter
"O", although, technically, you could intercept the
"O" and still re B4A Library AdvancedWebview - DonManfred    Jan 03, 2017   (27 reactions) lang.Object Width As int GeolocationEnabled As boolean WebViewClient As android.webkit.WebViewClient DesktopMode As boolean B4A Question Webview- Access Denied with API 30 - drgottjr (first post)    Jul 13, 2021   (2 reactions) i've tested it (both inline and as part of a library); it's easy to set up and works as expected.
but it would be cleaner if someone maintaining an important library here
(eg, webviewextras or even the core) were to include it there, rather than adding a random
inline snippet which ends up conflict Page: 1   2   3   4   5   6   7   Powered by ColBERT |