H hanyelmehy Active Member Licensed User Longtime User Jul 15, 2018 #1 when try B4X: Dim Javascript As String Javascript="B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)" Wve.executeJavascript(Javascript) i get this error:Uncaught TypeError: B4A.CallSub is not a function Note : B4X: Javascript="javascript:alert('Hello World')" run correctly test done on android 6.0 Last edited: Jul 15, 2018
when try B4X: Dim Javascript As String Javascript="B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)" Wve.executeJavascript(Javascript) i get this error:Uncaught TypeError: B4A.CallSub is not a function Note : B4X: Javascript="javascript:alert('Hello World')" run correctly test done on android 6.0
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2018 #2 Seems like you need to call AddJavascriptInterface first: https://www.b4x.com/android/forum/threads/webviewextras.12453/ Upvote 0
Seems like you need to call AddJavascriptInterface first: https://www.b4x.com/android/forum/threads/webviewextras.12453/