I am trying to get the style value of a <div id> tag in this page: http://routino.grade.de/
On loading the page, the results tab shows "Status: Router not run" (as detailed on line 323 of the html source). The variable I need is <div id="result_status_complete" .... where the style would be display: inline, instead of display: none.
I have tried this code
but the value comes back as empty???? Could this be correct or have I made a mistake. Javascript is not my strength.
On loading the page, the results tab shows "Status: Router not run" (as detailed on line 323 of the html source). The variable I need is <div id="result_status_complete" .... where the style would be display: inline, instead of display: none.
I have tried this code
B4X:
'Dim Javascript As String="B4A.CallSub('GetVarFromWebview', true, document.getElementById('result_status_complete').getAttribute('style'))"
Dim Javascript As String="B4A.CallSub('GetVarFromWebview', true, document.getElementById('div id='result''))"
WebViewExtras1.executeJavascript(WebView1, Javascript)
Sub GetVarFromWebview(WebVar As String)
'Called when the javascript is finished
Log("Web variable has the value => " & WebVar)
Activity.Finish
End Sub
but the value comes back as empty???? Could this be correct or have I made a mistake. Javascript is not my strength.