sorry, I think I missed a line in the post above, here’s the revised version:
$(window).load(function () {
var myUrl = “www.xyz.com”;
$("#tweetButton").html(’<iframe allowtransparency=“true” frameborder=“0” scrolling=“no”’ +
’ src="http://platform.twitter.com/widgets/tweet_button.html?url=’+myUrl+ ’ "style=“width:130px; height:50px;”>’);
twttr.events.bind('tweet', function(event) {
alert(“testing”);
});
});