Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created November 14, 2011 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirpo/1365165 to your computer and use it in GitHub Desktop.
Save cirpo/1365165 to your computer and use it in GitHub Desktop.
$('document').ready(function(){
var usernames = ['cirpo',
'merissimissima',
'unlucio',
'sandropaganotti',
'odracci',
'gandellinux',
'pcamoz',
'idonghee',
'il_bosca',
'ilcironet'
];
$.each(usernames, function (index, name){
$.ajax({
url : "http://api.twitter.com/1/users/show.json?screen_name="+ name,
dataType : "jsonp",
success : function(data)
{
$('#avatar_' + name ).attr('src', data.profile_image_url);
console.log('nome: '+ name + 'url: ' + data.profile_image_url);
}
});
console.log(name);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment