I switched from the WebView to the WKWebview. It seems that the stringByEvaluatingJavaScriptFromString method does not exist? Is there a replacement method or a different way to inject JS?
I saw that addition, but I don't understand how it works and cannot find documentation on it or examples of it. Please provide an example explaining how to inject JS using this method.
aWebView.EvaluateJavaScript("Test","alert('Hello, World!');")
Sub EventName_JSComplete (Success As Boolean, Tag As Object, Result As String)
Select Tag
Case "Test"
If Success Then
Log("JS finish")
End If
End Select
End Sub
aWebView.EvaluateJavaScript("Test","alert('Hello, World!');")
Sub EventName_JSComplete (Success As Boolean, Tag As Object, Result As String)
Select Tag
Case "Test"
If Success Then
Log("JS finish")
End If
End Select
End Sub
1.) Add a reference to iUI8 in the "Libraries Manager" tab
2.) Add #MinVersion: 8.0 to your project attributes 3.) Go into the Designer, click Add View-->CustomView-->WKWebView
4.) Now you can use WKWebView like a normal WebView