hi,
How to get the HTML code of a web page loaded in a webview ?
The code bellow don't work because joWV is an object and html_txtarea.text wait a String value.
It's just trying to explain the expected result. But the code is bad.
Can someone help me?
Thanks,
How to get the HTML code of a web page loaded in a webview ?
The code bellow don't work because joWV is an object and html_txtarea.text wait a String value.
It's just trying to explain the expected result. But the code is bad.
B4X:
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Public zoneweb As WebView
Public html_txtarea As TextArea
End Sub
Sub zoneweb_PageFinished (Url As String)
Dim joWV As JavaObject = zoneweb
html_txtarea.Text = joWV.RunMethodJO("getEngine", Null).RunMethod("getDocument", _
Array As String("var element = document.getElementsByTagName('html')[0].innerHTML.toString();"))
End Sub
Can someone help me?
Thanks,
Last edited: