tags:

views:

14

answers:

0

Hello,

I'm having this strange issue when i try to retrieve a status using jquery ajax, i get nothing in response.

Firebug showing a red link in the console with a code of "200 ok".

But when i test my link using wget, it works and i get many status' rather than just single one i specified in the url string.

What's going on here?

twitter api url - note that i specify that I want a single result

http://api.twitter.com/1/statuses/user_timeline.json?screen_name=cnn&count=1

simple jquery

$.ajax({
      url: 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=cnn&count=1',
      success: function(data) {
            $('body').html(data);
        },
      dataType: 'json'
    });