i tried to get google hot trend data using jquery. i wrote a code for that but it's returned error status code 0 could you please help me to find what's wrong with that?
here is my code
function topSearchesRss() {
var url = 'http://www.google.com/trends/hottrends/atom/hourly';
$.ajax({ type: 'GET',
开发者_如何学JAVA url: url,
datatype: 'xml',
error: function (err) { alert(err.status);},
success: function (xml) { alert('sucesss'); }
});
}
精彩评论