How to remove <meta http-equiv="X-UA-Compatible" content="IE=5">

Add-in Express™ Support Service
That's what is more important than anything else

How to remove <meta http-equiv="X-UA-Compatible" content="IE=5">
 
kp2014




Posts: 13
Joined: 2014-05-15
Hi there!

Our add-in only works on IE9 or newer.
It has to work on an external site which has <meta http-equiv="X-UA-Compatible" content="IE=5"> at the top of every page.
Is there a way to remove "<meta http-equiv="X-UA-Compatible" content="IE=5">" using the IEModule so that document mode is not set to 5?

Note: The external site will not remove it and our clients can not be expected to follow instructions for any workaround.
It has to be done at an early stage in order to work. As soon as the browser detects X-UA-Compatible, any changes afterwards has no effect.
Posted 07 Oct, 2014 04:36:06 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hello,

It can be done in the OnDataAvailable event of the iemodule. Please look at the http://www.add-in-express.com/support/ie-vbnet-csharp.php example.
Posted 07 Oct, 2014 10:48:17 Top
kp2014




Posts: 13
Joined: 2014-05-15
Thanks,

Got it to work.
Note: From the code example "ADXIEDataAvailableEventArgs.ADXIEReportDataState.DataMimeTypeAvailable" does not exist.
Please update the example.
Posted 08 Oct, 2014 07:27:41 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hello Morten,

The DataMimeTypeAvailable value was added to the ADXIEReportDataState enumeration in the latest (9.2.6123) build of Add-in Express for Internet Explorer and .net. Please install the latest version.
Posted 08 Oct, 2014 10:26:07 Top