Ola
I need a way to execute code during the ready change event of the document.
I have added this call in banano_ready
I am trapping this with
I seem to only pick a readyState of "complete" and none of these states discussed here.
I have set Network > Online > Slow Connection and none of the states are reported except complete.
Can you please advise?
Thanks
PS: I am trying to achieve the same effect discussed here, https://www.geeksforgeeks.org/how-to-show-page-loading-div-until-the-page-has-finished-loading/
I need a way to execute code during the ready change event of the document.
I have added this call in banano_ready
B4X:
Dim cb As BANanoObject = BANano.callback(Me, "readychange", Null)
BANano.Window.GetField("document").AddEventListener("readystatechange", cb, True)
I am trapping this with
B4X:
'the state of the document is changing
Sub readychange
Log("readystate...")
Dim rs As String = BANano.Window.GetField("document").GetField("readyState").Result
Log(rs)
'read the state
End Sub
I seem to only pick a readyState of "complete" and none of these states discussed here.
W3Schools.com
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
I have set Network > Online > Slow Connection and none of the states are reported except complete.
Can you please advise?
Thanks
PS: I am trying to achieve the same effect discussed here, https://www.geeksforgeeks.org/how-to-show-page-loading-div-until-the-page-has-finished-loading/
Last edited: