jQuery.latestTweet

On this page you'll find a few examples that demonstrate the jQuery.latestTweet plugin

View on GitHub Download zip

Plugin defaults

  1. $.fn.latestTweet.defaults = {
  2. formatLinks: true, // format url's to a clickable link
  3. formatMentions: true, // format @username to a link to the users profile
  4. formatHashes: true, // format #tag to a link to the twitter tag search
  5. callback: function() {} // function that will be called after the latest tweet has been filled in.
  6. };

Tweet

Code
  1. $(function() {
  2. $('#demo1 p').latestTweet('bbcnews');
  3. });

Tweet

Code
  1. $(function() {
  2. $('#demo2 p').latestTweet('bbcnews', {
  3. formatLinks: false,
  4. formatMentions: false,
  5. formatHashes: false
  6. });
  7. });
press the button to start

Tweet

Code
  1. $(function() {
  2. $('#demo3start').click(function(e) {
  3. e.preventDefault();
  4. $("#log").text('start getting latest tweet');
  5. $('#demo3 p').latestTweet('foxnews', {
  6. callback: function() {
  7. $("#log").text('finished!');
  8. }
  9. });
  10. });
  11. });