1 post / 0 new
Last post
#1

Get URL with code 200, but returns Error, Help please

Mon, 11/12/2012 - 13:43

Hi all

I hope this is in the right place, if not sorry.

I am trying to get a list of categories (well anything will do) from a URL like
http://api.remix.bestbuy.com/v1/categories?apiKey=_______&format=json

I Am using Ajax to get the URL and data within.
In FireBug the first line in the console.log show GET [url] - 200 OK - 600ms(ish) but
success: function(){console.log('DONE')}, does not fire and
error: function (a,b,c) { console.log('ERROR!'); console.log(a); console.log(b); console.log(c); }, does?

the Code works if I change the URL to a different source such as F1 news thought pipes.yahoo

Any Ideas?

the code is:

$(document).ready(function () {

$.ajax({//F1 latest
url: 'http://api.remix.bestbuy.com/v1/categories?apiKey=8xkgjsjs5wrbg7refs9djs4x&format=json',

dataType: "JSON",
success: function(){console.log('DONE')},
//done: function(){console.log('DONE')},
error: function (a,b,c) {
console.log('ERROR!');
console.log(a);
console.log(b);
console.log(c);
},
complete: function () {
//console.log('hi - com');
// $('#list-id').listview('refresh');
},
//always: function () { console.log('hi - Always'); },

});
});

blog comments powered by Disqus