Saturday, June 28, 2014

How to check AMX page is fully loaded or not

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.
<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.

7 comments:

  1. Hey Deepak that was a very informative tutorial on checking AMX page when it is not fully loaded.We create many Oracle ADF tutorials as well that may benefit your readers, find out more at http://www.fireboxtraining.com/

    ReplyDelete
  2. Thanks for the tutorial on AMX pages loading. I work at a mobile app development company and this issue is very important for my job. I try to read more such tutorials on mobile apps development. Hope hearing from you soon.

    ReplyDelete
  3. Nice Blog !
    QuickBooks is one such accounting software that is used by businesses of all sizes to streamline all the accounting activities of an organization. In case you want quick help for QuickBooks problems, call us at QuickBooks Customer Support 1-855-974-6537 and get immediate technical solutions for QuickBooks queries.

    ReplyDelete
  4. Hey! Good blog. I was facing an error in my QuickBooks software, so I called QuickBooks Customer Service (855)756-1077. I was tended to by an experienced and friendly technician who helped me to get rid of that annoying issue in the least possible time.

    ReplyDelete
  5. Hey! Well-written blog. It is the best thing that I have read on the internet today. Moreover, if you are looking for the solution of QuickBooks Customer Service, visit at QuickBooks Customer Service to get your issues resolved quickly.

    ReplyDelete
  6. Nice article, keep writing such blogs regularly.in case if you face any issue, using QuickBooks, CallQuickBooks customer service and call on number 1-855-756-1077.

    ReplyDelete
  7. Hey! Excellent work. Being a QuickBooks user, if you are struggling with any issue, then dial QuickBooks Error 3371. Our team at QuickBooks will provide you with the best technical solutions for QuickBooks problems.

    ReplyDelete