locked
simple navigation RRS feed

  • Question

  • I have two html pages (default.html and canvasball.html) and i want to navigate from the parent using some approach.

    Guide please. THanks


    maifs


    Wednesday, January 9, 2013 7:23 AM

Answers

  • Hi maifs,

    Actually, the Navigation and navigation history sample above has included the code you want. Please have a look.

    And some code should as follow:

    var destUrl = this.getRelativeUrl(eventObject.target.href);
    
                // Prevent the default browser navigation
                eventObject.preventDefault();
    
                // Kick off a navigation
                WinJS.log && WinJS.log("Navigating to " + destUrl, "sample", "status");
                WinJS.Navigation.navigate(destUrl, this.getNavState());


    Roy
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Mehmood Ahmed Thursday, January 10, 2013 10:51 AM
    Thursday, January 10, 2013 3:24 AM

All replies