Sometimes you might requires to manipulate the HTML elements after the page is fully loaded. In HTML file it an be checked using window.onload or deviceready but same doesn't guarantees the appropriate ADF Mobile state.
In ADF mobile using showpagecomplete event on the handlePageShown callback function it can be checked.
In my next article I will show the usage of showpagecomplete event with example.
In ADF mobile using showpagecomplete event on the handlePageShown callback function it can be checked.
<script>
function handlePageShown() {
console.log("Page is shown!");
}
document.addEventListener("showpagecomplete", handlePageShown, false);
</script>
The showpagecomplete event guarantees the appropriate ADF Mobile state; other browser and third-party events, such as load and Cordova's deviceready, may not.
In my next article I will show the usage of showpagecomplete event with example.