I have a page that is quite jQuery reliant. The functionality on the page works fine in all browsers, except IE9. This I understand is down to the issue with IE9 where Javascript can load very slowly.
The problem I face is that the page, once loaded thinks that Javascript is not available.
An error I am seeing in the console is:
SCRIPT5007: Unable to get property 'length' of undefined or null reference
File: jquery-1.8.3.min.js, Line: 2, Column: 14331
For the record, the jQuery lib is loaded before any other js files.
I have tried to get around this issue by adding the following code into the head, to try and force IE9 into IE8 mode. Note by default for IE we force 'edge' mode.
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--[if IE 9]>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<![endif]-->
However, this makes no difference.
Before anyone asks why we're relying on IE9, it is a business requirement.
Does anyone have any idea how I can get the page to render in IE8 mode if the bowser accessing the page is IE9?
Many thanks in advance.
I should add, the page in question has a 'noscript' check on it, so will not render if JS is not available. This is true ONLY in IE9. For all other browsers, the page will render fine. I'm wondering if the above error is something else...
For the record, I have been looking at this IE9 JavaScript error: SCRIPT5007: Unable to get value of the property 'ui': object is null or undefined thread.