metro us external js script


  • Hi

    We want to add external java script src within our page but found some problems to add dynamic content to the page.

    It seems that the solution for that is an iframe with "ms-wwa-web:///test.html" attribute , but it seems that its not reach to the code 

    Within test.html (although i place file in the root of my app) , omitting "ms-wwa-web" from the "src" attribute will lead to exception on "adding dynamic content to page" (but it reach for the js code!!).

    is there a way to integrate an external java script src within our page ? 

    Monday, August 27, 2012 8:08 AM


  • Referencing remote script from a "local context" page (the root page of the app and anything referred to with ms-appx:///) is not allowed. See Features and restrictions by context. You can only do that kind of referencing from a web context iframe, which is referenced now with ms-appx-web:///.

    I see you noted ms-wwa-web:///. This is obsolete--that's the old URI scheme that we had last year but has been changed to ms-appx-web:///. That may be your simple problem right there.


    Monday, August 27, 2012 3:48 PM