B4J Question [BANano] How to call a CodeModule.Sub OnDOMContentLoaded?

Mashiane

Expert
Licensed User
Longtime User
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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…