Skip to content

Instantly share code, notes, and snippets.

@oren
Created September 13, 2010 20:28
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 oren/577968 to your computer and use it in GitHub Desktop.
Save oren/577968 to your computer and use it in GitHub Desktop.
//working
$('.retweet-button').html('<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>');
//not working
var fbshare = $.getScript('http://widgets.fbshare.me/files/fbshare.js', function() {
$('.facebook-button').html(fbshare);
});
in my view page:
<div class="retweet-button"></div>
<div class="facebook-button"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment