Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  


Overlib tool broken in Internet Explorer 10
Overlib tool returns this error message when running in IE 10:
"Error: Unable to get property '1' of undefined or null reference"

The fix is to modify the overlib.js script so that it can handle IE browser with a version containing more than 1 digit (higher than '9').

Change the line that currently has:
var versNum = parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);
to the new value:
var versNum = parseFloat(agent.match(/MSIE[ ](\d{1,9}\.\d+)\.*/i)[1]);

That should now handle an IE version of up to 9 digits long.

Created By: amos 3/26/2013 5:40:12 PM
Updated: 3/26/2013 5:40:57 PM