Page unload of previous page happens after ready function of a current page RRS feed

  • Question

  • When navigating away from a page, the unload function executes after the ready function.  My problem is I have,

    //unload function of the page navigating away from
    unload: function() {
    appBar.winControl.disabled = false;
    //ready function of the page navigating to
    ready: function () {
    appBar.winControl.disabled = true;

    In this case I want the appBar disabled on both the pages navigating away from and navigating to.  All other pages have appBar enabled.  When navigating as above if I disable the appBar in the ready function of the new page, it gets enabled again when the unload function of the previous page executes.

    Is there any way to detect if the previous page is unloaded?

    Sunday, December 22, 2013 3:01 AM


All replies