locked
How do I have a Webview with local iframe RRS feed

  • Question

  • I am using 8.1 I am loading the webview with .Navigate(newUri("ms-appx-web:///root.html"));

    In the page I have a    <iframe src="test.html"> </iframe> and the iframe is not populated.

    I have also tried ms-appx:///

    Can someone please help?

    Thanks,

    Knic

    Monday, November 4, 2013 7:01 AM

Answers

  • This works fine on my machine:

    <iframe src="ms-appx-web:///test.html"> </iframe>

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by oneeyedelf1 Tuesday, November 5, 2013 7:26 AM
    Monday, November 4, 2013 2:53 PM
    Moderator

All replies

  • This works fine on my machine:

    <iframe src="ms-appx-web:///test.html"> </iframe>

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by oneeyedelf1 Tuesday, November 5, 2013 7:26 AM
    Monday, November 4, 2013 2:53 PM
    Moderator
  • Thank you!

    I tried that.... I do not know why it wasn't working. Tried with a different file and it worked.


    • Edited by oneeyedelf1 Tuesday, November 5, 2013 7:29 AM typo
    Tuesday, November 5, 2013 7:27 AM