I have the following code below to post new tweet to twitter in my website
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-
<html>
-
<head>
-
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
-
</head>
-
<body>
-
<div>
-
<a href="http://twitter.com/share" class="twitter-share-button"
-
data-url="http://www.testsite.com"
-
data-text="hello world @"
-
data-count="none">Tweet</a>
-
</div>
-
<script type="text/javascript">
-
twttr.ready(function (twttr) {
-
twttr.events.bind('tweet', function(event) {
-
alert("Post successful");
-
});
-
});
-
</script>
-
</body>
-
</html>
In IE, alert is not being performed and even the popup window, don't close too. After further checking and research, the tweet event itself is not being fired. But it works well with other browsers.