Mashiane Expert Licensed User Longtime User Dec 3, 2020 #1 Ola Assuming that I have a sub on a code module called Init, lets say the codemodule name is phIndex. So you have pgIndex.Init. How can I call this method on AppStart using onDomContentLoaded. For example, you earlier game me this... B4X: BANano.Header.OnDOMContentLoaded=$"console.log("DOM ready!");document.getElementById("body").innerHTML+="loading...";"$ Can one use BANano.CallBack / BANano.RunMethod ? I don't know, can you please advise? Thanks.
Ola Assuming that I have a sub on a code module called Init, lets say the codemodule name is phIndex. So you have pgIndex.Init. How can I call this method on AppStart using onDomContentLoaded. For example, you earlier game me this... B4X: BANano.Header.OnDOMContentLoaded=$"console.log("DOM ready!");document.getElementById("body").innerHTML+="loading...";"$ Can one use BANano.CallBack / BANano.RunMethod ? I don't know, can you please advise? Thanks.
alwaysbusy Expert Licensed User Longtime User Dec 4, 2020 #2 It is not safe do do anything BANano related at that point as scripts, resources and stylesheets are not fully loaded at that point. Use BANano_Ready. Upvote 0
It is not safe do do anything BANano related at that point as scripts, resources and stylesheets are not fully loaded at that point. Use BANano_Ready.