Skip to content

Instantly share code, notes, and snippets.

@thinkphp
Created May 29, 2010 11:29
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 thinkphp/418230 to your computer and use it in GitHub Desktop.
Save thinkphp/418230 to your computer and use it in GitHub Desktop.
new Request.Twitter('phploveme',{
data: {count: 5},
onSuccess: function(data){
data.each(function(data){
new Element('div',{
class: 'tweet',
html: data.text
}).inject('tweets','bottom');
})
}
}).send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment