Skip to Content
avatar image
Former Member

SAPUI5 application page not opening from MII Portal in IE9

Dear All,

I am trying to open a sapui5 application page inside the MII portal in Internet Explorer 9. But, it gives error and application page not displayed.

Note: MII Version is 14.0

Now, If I modify the Document Mode to IE9 Standards for the above page, malformed page is showing.


Is there any configuration I need to follow to open my ui5 application inside the MII portal in IE9. Could you please guide me to solve this issue ? Advance Thanks for That.

Best Regards,

Bibhas Das

IE9-1.png (86.5 kB)
IE-2.png (73.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jun 25, 2013 at 02:39 PM

    Hi Bibhas,

    In addition to what Tufale has mentioned above, the first line in your html page should be

    <!DOCTYPE HTML> alongwith the <meta http-equiv="X-UA-Compatible" content="IE=edge">   in the head tag.

    This enables the UI5 page to render in Compatible Mode even if the settings in your browser are set to run in 'Quirks' Mode.

    As per UI5 standard guidelines, the UI5 pages are supported only in compatible mode of the browser.

    Thanks,

    Rutika

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 25, 2013 at 04:07 PM

    I haven't looked into this issue on version 14 yet but for previous MII versions I think the servlet/jsp for the personalization service is setting the doc type, and if I remember correctly even if you try to override it with a custom portal, IE will still respect the header value over the doctype in the document. Most of my 'HTML5' development has been on the mobile side where it hasn't been an issue so I didn't spend to much time looking into that. Anyway the problem you are having is because the portal uses an iframe to display your page and for whatever reason IE does not respect the document type of your page and forces all content in iframes to inherit the parent doc type. Try setting your page to open in a new window instead of in the portal.

    Regards,
    Christian

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 25, 2013 at 02:24 PM

    Hello Bibhas,

       Make sure you have loaded the SAP UI5 libraries correctly. Also, try adding the following code as the first statement in the Head tag

    <meta http-equiv="X-UA-Compatible" content="IE=edge"> 

    You could also check Making Engaging UI on SAP MII with SAPUI5

    and MII meets up SAPUI5! ..

    Regards

    Tufale Ashai.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 25, 2013 at 06:30 PM

    Dear Tufale and Rutika,

    I have used proper HTML meta tag and each required ui5 libraries is in right place in my SAPUI5 application.  I have tested my SAPUI5 application standalone in SAPUI5 compatible browser FireFox 17 (ESR), IE9 and in both browser application is perfectly running. But When I have tried to test my application inside the MII portal its actually gives error.

    Dear Christian,

    Your point is correct. Some how parent's document mode inherits into my application and do not consider my sapui5 application's doc type and yes, When I have tried to open as a new window my application from MII Portal, its running properly. But, my requirement is to open the page inside the MII Portal.

    I am still in search of solution. Thanks everyone for looking into this issue and also again Advance Thanks for further inputs.

    Best Regards,

    Bibhas Das

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 31, 2013 at 04:45 PM

    Can you try using IRPT pages instead of HTML pages and check ?

    Add comment
    10|10000 characters needed characters exceeded

    • Perhaps it is the iFrame used in the MII 'portal' that works differently (especially since it works when opening the portal link in a new window).  Try any old htm page with iframe and src to your html5 page.