Mind x Body
I feel bad for you son, but this little piece of code, just got it done:
jQuery.support.cors = true;
I spent a long time trying to figure out why I wasn’t getting a response from a getJSON call in IE8, when it worked Chrome and Firefox (naturally). I had also tried adding some error messages to see if I could see what was killing it, but alas nothing.
A couple of things:
- Apparently getJSON silently fails (via http://stackoverflow.com/questions/5492838/why-does-getjson-silently-fail)
- IE8 doesn’t support CORS in the XMLHttpRequest object which jQuery is using (via http://stackoverflow.com/questions/8456621/jquery-getjson-not-working-in-ie8)
- I didn’t try rewriting this with the jquery $.ajax api
So, quick hack, I added that piece of code in and boom, up and running on IE8.