I have a ajax call, but is failing everytime with error:"", status:0, but the StatusCode is 200OK. Any help will be appreciated with an working example as im new to ajax.
$.ajax({
type: 'GET',
url: "http://www.myapifilms.com/imdb/inTheaters",
cache: false,
crossDomain: true,
cache: false,
timeout: 10000000,
success: function(data) {
MoviesData = data;
},
error: function(jqXHR, textStatus, errorThrown) {
alert("Ajax error");
}
});