Closed doapp-ryanp closed 4 years ago
The problem is that IE8 and 9 don't use XHR for cross-domain requests -- they use the 'special' XDomainRequest object, which has (of course) a slightly different API from XHR. If you use a transport which supports XDomainRequest, you should be good.
A side note -- even JQuery still doesn't support this natively -- you have to use a plugin: http://bugs.jquery.com/ticket/8283
hmm I use JQuery $.ajax all the time to get json files via CORS from s3 and it works fine in IE8/9/10. When I get some time I'll come back to this and see if I can come up with a fix I can contribute.
You'll only have to change the transport layer to account for CORS. Just be careful not to break the interface
_tz.loadZoneJSONData('/timezones.json', true); //works in IE9
_tz.loadZoneJSONData('http://mycdn.com/timezones.json', true); //does not work in IE9
I have CORS setup correctly (I'm using s3 to host the json file). Works in FF, Chrome etc.
Anyone know a workaround for this?
This lib is badass btw.