locked
Integration of jquery in winjs apps

    Question

  • I have followed the msdn blog as detailed in: http://blogs.windows.com/windows/b/appbuilder/archive/2013/07/10/jquery-and-winjs-working-together-in-windows-store-apps.aspx, using the navigation code given on this page, I can navigate forwards and load content from an external HTML page dynamically. However on clicking the back button the scripts that I dynamically include from the external HTML file, suddenly stop working thus not loading the webpage in the app environment. Is there any reason for this?
    Thursday, March 6, 2014 1:30 PM

Answers

  • Hi,

    According to your description, you cannot load the previous page content when you create the back button to navigate to the previous page. If so, you should add the code in back button which calls WinJS.Navigation.back function so as to programmtically navigate back to the previous page (in the navigation stack).

    Here is the reference of WinJS.Navigation.back method (you can also find other navigation methods on the WinJS.Navigation object)

    WinJS.Navigation.back function (Windows)
    http://msdn.microsoft.com/en-us/library/windows/apps/br229802.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, March 7, 2014 3:51 AM