K Kita New Member May 3, 2022 #1 Code: Copy Sub Button1_Click Dim jsCode As String jsCode = "var kit = $('.disappear').html(); B4A.CallSub('ShareMessage', true ,kit)" WVE1.executeJavascript(webview2, "jsCode") End Sub I have posted this thread because i found the solution. and the solution will be in the reply Last edited: May 3, 2022
Code: Copy Sub Button1_Click Dim jsCode As String jsCode = "var kit = $('.disappear').html(); B4A.CallSub('ShareMessage', true ,kit)" WVE1.executeJavascript(webview2, "jsCode") End Sub I have posted this thread because i found the solution. and the solution will be in the reply
K Kita New Member May 3, 2022 #2 Code: Copy Sub Button1_Click Dim jsCode As String jsCode = "var kit = $('.disappear').html(); B4A.CallSub('ShareMessage', true ,kit)" WVE1.executeJavascript(jsCode) End Sub In WebViewExtras2 you only need to mention the Javascript string, Since its already a String object you don't need to put it in quotes "". Your Welcome Upvote 0
Code: Copy Sub Button1_Click Dim jsCode As String jsCode = "var kit = $('.disappear').html(); B4A.CallSub('ShareMessage', true ,kit)" WVE1.executeJavascript(jsCode) End Sub In WebViewExtras2 you only need to mention the Javascript string, Since its already a String object you don't need to put it in quotes "". Your Welcome