Metro Style Loading Js From Online

这一生的挚爱 提交于 2019-12-10 17:54:54

问题


I'm working with Visual studio 2012 ultimate on Windows 8.

I'm developing a html5/js metro-style-application.

I want to dynamicly load my js file from online. Like;

<script src="http://example.com/js/myJsFile.js"></script>

But metro application says;

APPHOST9601: Can’t load http://example.com/Scripts/myJsFile.js. An app can’t load remote web content in the local context.

How can I solve that problem ? Thanks...


回答1:


You can only include external js files from pages running in the web context.

More about this you can find here:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465373.aspx



来源:https://stackoverflow.com/questions/12627886/metro-style-loading-js-from-online

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!