On this page you'll find a few examples that demonstrate the jQuery.latestTweet plugin
- $.fn.latestTweet.defaults = {
- formatLinks: true, // format url's to a clickable link
- formatMentions: true, // format @username to a link to the users profile
- formatHashes: true, // format #tag to a link to the twitter tag search
- callback: function() {} // function that will be called after the latest tweet has been filled in.
- };
- $(function() {
- $('#demo1 p').latestTweet('bbcnews');
- });
- $(function() {
- $('#demo2 p').latestTweet('bbcnews', {
- formatLinks: false,
- formatMentions: false,
- formatHashes: false
- });
- });
- $(function() {
- $('#demo3start').click(function(e) {
- e.preventDefault();
- $("#log").text('start getting latest tweet');
- $('#demo3 p').latestTweet('foxnews', {
- callback: function() {
- $("#log").text('finished!');
- }
- });
- });
- });