Nitobi
About Nitobi
Services
Products
Home -> Blogs -> Alexei@Nitobi

Alexei@Nitobi

Detecting IE8 Emulating IE7

March 26th, 2008

I had this problem today.. I want to detect IE8 when it’s trying to emulate IE7.. dont ask why.. just trust there was a good reason. Point is – IE8 gives an IE7 user agent:

4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)

One way to do it is to use JavaScript to detect the presense of XDomainRequest, which is a new addition to the browser, and peaks in on the IE7 emulated mode.

Ie:

| Del.icio.us

This entry was posted on Wednesday, March 26th, 2008 at 1:46 pm and is filed under ie7, microsoft, ie8. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply


Search Posts

Pages

Archives

Categories

LinkedIn Profile

  • My Profile

www.flickr.com


My ideal work culture:
[See my summary] [What’s yours?]


All contents are (c) Copyright 2024, Nitobi Software Inc. All rights Reserved
Alexei@Nitobi Entries (RSS) and Comments (RSS).