senat56 Member Licensed User Longtime User Aug 21, 2013 #1 Hello professionals! There is a html file with the data in atach. I will ship it to webview - everything is loaded as it should! But the following code - no result! Code: Copy Dim Javascript As String Javascpt="B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)" Log("PageFinished: "&Javascript) WebViewExtras1.executeJavascript(WebView1, Javascript) ........ Code: Copy Sub ProcessHTML(Html As String) ' This is the Sub that we'll get the web page to send it's HTML content to ' Log may truncate a large page so you'll not see all of the HTML in the log but the 'html' String should still contain all of the web page HTML Log("ProcessHTML: "&Html) End Sub But if the source text, which is to remove Attachments Code: Copy onChange="javascript:if(checked){value=1}else {value=0};" Then all output without problems((( What's the problem? Attachments h.txt h.txt 4 KB · Views: 490
Hello professionals! There is a html file with the data in atach. I will ship it to webview - everything is loaded as it should! But the following code - no result! Code: Copy Dim Javascript As String Javascpt="B4A.CallSub('ProcessHTML', false, document.documentElement.outerHTML)" Log("PageFinished: "&Javascript) WebViewExtras1.executeJavascript(WebView1, Javascript) ........ Code: Copy Sub ProcessHTML(Html As String) ' This is the Sub that we'll get the web page to send it's HTML content to ' Log may truncate a large page so you'll not see all of the HTML in the log but the 'html' String should still contain all of the web page HTML Log("ProcessHTML: "&Html) End Sub But if the source text, which is to remove Attachments Code: Copy onChange="javascript:if(checked){value=1}else {value=0};" Then all output without problems((( What's the problem?