I can successfully get webpage Title with WebViewExtras lib v1.4
But I am having difficulties doing the same with WebViewExtras 2. The JavaCallback Sub is not fired.
lib ver2 WebViewExtras.executeJavascript method only calls for a single parameter (Javascript AS String)
I have tried ...
No errors are logged .. just do not get any result from JavascriptCallback Sub.
Any help appreciated .. Thanks
B4X:
Sub Activity_Create(FirstTime As Boolean)
WebView1.Initialize("WebView1")
WebViewExtras1.addJavascriptInterface(WebView1, "B4A")
'.....................
End Sub
Sub WebView1_PageFinished (Url As String)
WebViewExtras1.executeJavascript(WebView1, "B4A.CallSub('JavascriptCallback', true, document.title)")
End Sub
Sub JavascriptCallback(String1 As String)
Log(String1) ' = webpage title ..
End Sub
But I am having difficulties doing the same with WebViewExtras 2. The JavaCallback Sub is not fired.
lib ver2 WebViewExtras.executeJavascript method only calls for a single parameter (Javascript AS String)
I have tried ...
B4X:
WebViewExtras1.executeJavascript("B4A.CallSub('JavascriptCallback', true, document.title)")
No errors are logged .. just do not get any result from JavascriptCallback Sub.
Any help appreciated .. Thanks