Love to code, although it bugs me.

JQuery getJSON fails on IE

No comments

On a current project, I found that the ajax calls scripted using jquery’s getJSON were failing with no error message and didn’t even get to send the http request.

Doing some searches on the Internet, I found all sorts of mumbo jambo, about previous versiosn of IE not supporting xmlHTTPRequest, possible hacks to the code and turning the getJSON use into the equivalent ajax request.

Turns out, our test site was being fitted into the Intranet Security Zone and there’s an option, that usually gets turned on,  where you can set IE to use the compatibility view for every intranet site:

Although useful for legacy software on corporate environments, it’s killing modern web development.

I’m really looking forward to living on the Edge:

we encourage site developers to update their sites now to work well in Edge mode and serve the same markup they use with other browsers

No comments :

Post a Comment