I am trying to implement the method to inject Javascript posted by Erel here:
More specifically, the post from @moster67:
And I get this error:
Method not found: stringByEvaluatingJavaScriptFromString:, target: <WKWebView: 0x10282d400; frame = (0 0; 1027.96 649.159); layer = <CALayer: 0x282be4ee0>>
Please help. Thank you in advance.
WebView "extra"
B4i didn't have WebView extra library (yet) so I collect the code from around the forum. Hope it's useful for you. 1. Hide scrollbar of WebView: Dim no As NativeObject = WebView1 no.GetField("scrollView").SetField("showsHorizontalScrollIndicator", False)...
www.b4x.com
More specifically, the post from @moster67:
B4X:
Dim no As NativeObject = WebView1
Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title")))
And I get this error:
Method not found: stringByEvaluatingJavaScriptFromString:, target: <WKWebView: 0x10282d400; frame = (0 0; 1027.96 649.159); layer = <CALayer: 0x282be4ee0>>
Please help. Thank you in advance.