Skip to content

Instantly share code, notes, and snippets.

@imajes
Created January 21, 2009 05:32
Show Gist options
  • Select an option

  • Save imajes/49864 to your computer and use it in GitHub Desktop.

Select an option

Save imajes/49864 to your computer and use it in GitHub Desktop.
var since_url = "q=@ntoip"
$(document).ready(function(){
$.getJSON("http://search.twitter.com/search.json?callback=?" + since_url,
function(data){
since_url = data.since_url
$.each(data.results, function(i,item){
line = item.text.replace("@ntoip:", "") + "<br><span>- <a href='http://twitter.com/" + item.from_user + "'>" + item.from_user + "</a></span>"
$("<p>").html(line).appendTo("#latest");
//if ( i == 4 ) return false;
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment