I have a list of news, displaying in a grid and I would like to provide my user with ability to tweet any news that they want to their tweeter account. The tweet button displaying well first time the page load, but when user navigate to another page of grid, the tweet button is disappear because I use AJAX to update the grid content (If I do not use AJAX for updating the grid, then the button showing fine).
Please advice what should I do to make the tweet button working with AJAX, because I really have to use AJAX in my case.
Thank you very much.
This afternoon we've pushed a small update to
twttr.widgets.load(), which will re-run the detection and invocation flow for all uninitialized buttons in the page.
<a class="twitter-share-button" href="http://twitter.com/share" data-url="http://example.com/post/12345">Tweet</a>, insert it into the DOM, and then call
twttr.widgets.load(), and everything should spring into life.
Please let me know if you run into any issues,
-- @benward, Twitter Platform team.