Created
August 10, 2011 06:56
-
-
Save rummelonp/1136273 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a.next-tweet-button").click(function() { | |
event.preventDefault(); | |
var self = $(this); | |
$.ajax({ | |
url: self.attr('href') | |
}) | |
.success(function(data) { | |
var tweets = $(data).find('.tweet'); | |
$('#tweet-container').append(tweets); | |
}) | |
.error(function() { | |
alert('error'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment