user3492837
user3492837

Reputation: 1

AJAX call working in Chrome but not IE

Trying to get json data from a url which generates the bottom 3 numbers of a webpage. My ajax call works in Google chrome but not in internet explorer. After doing research I was told I needed to disable caching with cache: false which has not solved the problem.

Here is the sourcecode on jsfiddle with a successful ajax call. However my code will does not work on internet explorer.

http://jsfiddle.net/c2VeD/148/

var url = 'http://crudwebappmavenized.ncsu.cloudbees.net/stats'

$.ajax(url, {

type: 'GET',
crossDomain: true,
dataType: 'json',
contentType: 'application/json',
cache: false,
success: function (result)

Upvotes: 0

Views: 2026

Answers (1)

Fiambre
Fiambre

Reputation: 1979

IE7 and earlier doesn't support crossdomain, in IE8 or later you need to check this page "Security: Cross-Domain and Zone Policy" http://msdn.microsoft.com/en-us/library/ms537505%28VS.85%29.aspx

EDIT

Check this answer:

Jquery $.ajax fails in IE on cross domain calls

Upvotes: 1

Related Questions