0

I'm using Internet Explorer 11 and SharePoint 2010.

I created a simple HTML page whit CSS, JavaScript and jQuery. I hosted my page in a SharePoint's page. I added a simple WebPart (Page Viewer) that link to my HTML page.

If I open my page with IE11, on my local machine, is rendered correctly; it doesn't work on SharePoint'page.

I see the property "document mode" of page on my local machine is "10" while in SharePoint 2010 has "8".

What is "document mode" property? How can I resolve this problem?

enter image description here enter image description here

ilMattion
  • 1,491
  • 1
  • 15
  • 41
  • Post your doctype and meta tags ..in other words, your html header :) – Ason Feb 26 '14 at 10:38
  • Hi. This is my header code: ... ... – ilMattion Feb 26 '14 at 10:51
  • Next time, update your question instead as comments might get deleted... try adding this meta tag: ` ` – Ason Feb 26 '14 at 10:59
  • I also think you should start using this doctype, which also might solve (or is needed to solve) your problem: ` ` – Ason Feb 26 '14 at 11:03
  • Thanks for your answer. This is correct. After your response I found this link http://stackoverflow.com/questions/10975107/force-to-use-internet-explorer-ie9-standards-document-mode. – ilMattion Feb 26 '14 at 11:03
  • possible duplicate of [What's the difference if exists or not?](http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge-e) – Ason Feb 26 '14 at 11:05

1 Answers1

2

I resolved this problem adding this code on html's head element:

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

I found solutions there: Forcing Internet Explorer 9 to use standards document mode

Community
  • 1
  • 1
ilMattion
  • 1,491
  • 1
  • 15
  • 41