1
我已经搜索并搜索了一个答案,但我似乎无法找出我做错了什么。我正在构建一个将绑定到Google API中的Windows 8应用程序,并挂上了整个iframe概念。我已经遵循例子后的例子,似乎没有任何工作。以下是我尝试使用的两个页面的一部分,以及我得到的错误。任何帮助将不胜感激。提前致谢!Windows 8 Metro应用程序Iframe
<html>
<head>
<meta charset="utf-8" />
<title>WinWebApp1</title>
<!-- WinJS references -->
<script src="//Microsoft.WinJS.1.0.RC/js/base.js"></script>
<script src="//Microsoft.WinJS.1.0.RC/js/ui.js"></script>
<!-- WinWebApp1 references -->
</head>
<body>
<div>
<iframe id="Iframe" src="ms-app-web:///page.html"></iframe>
</div>
</body>
</html>
第2页
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<div>This is a test</div>
</body>
</html>
我得到的错误
APPHOST9624: The app can’t use script to load the ms-app-web:///page.html url because the url launches another app. Only direct user interaction can launch another app.
你可能打算使用ms-appx-web – Denis 2012-07-14 03:50:10
你完全正确。这似乎已经解决了这个问题..奇怪,因为我认为我已经尝试过。无论哪种方式谢谢你! – BlakeJ 2012-07-14 04:42:27