@rallax: This is how I've been structuring my requests with jQuery:
$.ajax({
url: _url,
dataType: "jsonp",
jsonp: 'json_callback',
data: {
api_key: 'api_key',
format: 'jsonp',
},
success: function(res) {
callback(res);
}
});
I'd prefer to be using fetch and promises, but I haven't managed to get it configured yet. Let me know if you have any luck!
Log in to comment