can any one please tell me why this jQuery function is not working. It raises no alert
.
$.getJSON('http://api.twitter.com/1/statuses/user_timeline.json?',
{
screen_name: 'samajshekhar',
count: '5',
},
function (data) {
alert('hello world from twitter');
});
In fiddler i can see that expected JSON has been returned.
However when calling flicker's api using the example code at jQuery documentation it gives an alert
as expected
$.getJSON('http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?',
{
tags: 'cat',
tagmode: 'any',
format: 'json'
},
function(data) {
alert('hello world from flicker');
});
Here is the sample code on JS Bin
I tried even with facebook's graph API still no alert
In sample code i tried getJSON calls to facebook,twitter,flicker and only the flicker's call's alert
is raised.