Problem loading iframe with Edge on Mobile RRS feed

  • Question

  • Hi everyone,

    I have this code that works excellent with any browser but not with Edge 14 on windows 10 mobile (Lumia 950)


    if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
                manageProfileIframe.setAttribute("src", "data\:text/html," + xmlHttp.response);

    In Edge on mobile, the Iframe shows:

    hmm, we can't reach this page.
    Try this
    Make sure you’ve got the right web address: data:text/html,<!doctype html><html lang="en" xmlns="
    Refresh the page
    Search for what you want

    You're not connected
    And the web just isn’t the same without you.
    Let’s get you back online
    Make sure you’re not in airplane mode.
    See if your wireless switch is turned on.
    Go to network settings


    xmlHttp.response is very simple, has the header and a simple paragraph in the body



    Thursday, December 29, 2016 10:42 AM


All replies

  • Hi,

    Using the javascript:... way doesn't work at all and I can't debug on mobile.

    With iframe.src='data:text/html,'+xhr.response; I have the same errir as adding the attribute, "hmm, we can't reach this page."

    I found fixes on the internet that aren't applicable on mobile (adding url to trusted sites, start windows dns client service, modyfing the hosts file and others).

    I wonder if there's a header that I can add to the request to make it work.

    The headers that I have now are Content-Type, Accept, cache-control: max-age-0 and Upgrade-Insecure-Requests: 1

    Thursday, December 29, 2016 4:08 PM
  • Hi,

    In addition, as this issue is mainly related to IE development, I suggest discussing it in our Windows development forum. They are the best resource to troubleshoot this issue.

    Best Regards,


    Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact

    Friday, December 30, 2016 8:36 AM
  • iframe.contentDocument.write(xhr.response); works !!!

    Thank you and happy new year !! :)

    Friday, December 30, 2016 1:55 PM
  • Thanks you for answering. Finally the workaround of Yo mama worked :)
    Friday, December 30, 2016 1:56 PM