jquery - I am trying to create pie chart using highcharts in SharePoint 2010 Visual Web Part.Not working with default document model of IE 11 -


this link has code: http://jsfiddle.net/agc0fuyk/18/

works fine when :

run in jsfiddle (chrome ie 11.0.96).

run in visual studio asp.net html page (chrome ie 11.0.96).

fails when :

run in sharepoint 2010 visual web part(visual studio 2010)

now when open f12 developer tool's emulation tab ie window, document mode set 5 default, when change document mode 10, can see page/chart loaded properly.

at sharepoint page have added meta tag :

<meta http-equiv="content-type" content="text/html; charset=utf-8"> 

also added javascript remove indexof error in ie reference indexof not function in firefox, opera works in ie, indexof alternative in javascript test string contains?

please me run in ie.

got solution problem adding following lines in "page_load" of web-part:

htmlmeta metaedgeie = new htmlmeta(); metaedgeie.httpequiv = "x-ua-compatible"; metaedgeie.content = "ie=edge"; page.header.controls.addat(0, metaedgeie); 

now working in ie 11.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -