windows store apps - como simular um iframe

http://stackoverflow.com/questions/13389076/correct-way-of-embedding-an-iframe-with-a-remote-website-in-a-metro-app

http://www.codeproject.com/Articles/506739/How-to-use-the-Google-Maps-API-on-Windows-8


HTML---
<div id="container"></div>
---JS---
WinJS.xhr({
url: 'http://yourwebsitehere'
}).done(function (result) {
     var domContainer = document.getElementById("container");
     domContainer.innerHTML = toStaticHTML(result.response);
});
But it will not act like an iframe overall, but you can still use it, if you just want to show a page from other domains.

Nenhum comentário:

Postar um comentário