【发布时间】:2013-11-16 17:25:23
【问题描述】:
我正在创建我的第一个 Metro 风格的 Windows 8 应用程序。 我正在尝试使用 runescape 的 iframe 来做到这一点。
这是我的代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Runescape_Metro_Client</title>
<!-- WinJS references -->
<link href="//Microsoft.WinJS.2.0/css/ui-dark.css" rel="stylesheet" />
<script src="//Microsoft.WinJS.2.0/js/base.js"></script>
<!-- Runescape_Metro_Client references -->
<link href="/css/default.css" rel="stylesheet" />
<script src="/js/default.js"></script>
</head>
<body>
<iframe sandbox="allow-scripts" id="Iframe" src="http://www.runescape.com/game" style="width:100%; height:100%"></iframe>
</body>
</html>
这是我得到的错误:
APPHOST9625:Kan niet navigeren naar:'http://www.runescape.com/game'。 Een iframe heeft geprobeerd om naar een URI te navigeren die niet is de ApplicationContentUriRules voor deze 应用程序中的 opgenomen。格布鲁克 plaats daarvan een x-ms-webview-element om de URI te bekijken of voeg de URI toe aan de ApplicationContentUriRules-sectie van het pakketmanifest,zodat het iframe daarnaartoe kan navigeren。 (沃格在 Visual Studio deze URI toe aan het tabblad Content URIs van de 清单设计器。)
(用谷歌翻译成英文是:
APPHOST9625:无法导航到:http://www.runescape.com/game。 iframe 已尝试导航,但此应用的 ApplicationContentUriRules 中未包含该导航。到 URI 相反,使用 x-ms-webview 元素来查看 URI 是否将 URI 添加到包清单的 ApplicationContentUriRules 部分,以便 iframe 去那里导航。 (在 Visual Studio 中将此 URI 写入清单设计器 URI 的“内容”选项卡。)
谷歌没有帮助,所以我在这里问它。
【问题讨论】:
-
@SLaks 啊啊谢谢!你是否也知道如何让应用程序看到我在我的电脑上安装了 java?
-
您不能在 Windows 应用商店应用程序中使用 Java。
标签: javascript html iframe visual-studio-2013