I cannot get jQuery to return to success, even if the URL that it creates is working. The code is as follows:
var baseURL = "http://api.rottentomatoes.com/api/public/v1.0.json"; var apiKey = "myAPIKEy"; $.ajax ({ type: "GET", url: baseURL, data: { apikey: apiKey }, success:function() { alert('here'); }, complete:function(data) { return data; } });
This is not a successful success (I took out the failure, but he went into failure). I'm not sure why this fails if I copy the generated generated url and it works and returns a response. Please let me know what other information I can provide. I'm sorry that I'm a little vague. Any help is much appreciated !!!
source share