mrdoob/three.js — Issue #1140: getResponseHeader not supported in IE 9
Author: JGeerWM
Created: 2012-01-19 17:36:24+00:00
State: open

While attempting to load a JSON model, I ran into a scripting error in IE. It appears they have not implemented XMLHttpRequest.getResponseHeader(). I am able to get around the error using:

f.open("GET",c,!0); if (f.overrideMimeType)f.overrideMimeType("text/plain; charset=x-user-defined"); f.setRequestHeader("Content-Type","text/plain");

instead of

f.open("GET",c,!0); f.overrideMimeType("text/plain; charset=x-user-defined"); f.setRequestHeader("Content-Type","text/plain");

I'm not certain if this introduces any new issues with other browsers, but am now able to view a model in IE 9.