run the code on ajax load, or put it on the end of file that is loaded
var addthis_url = "http://s7.addthis.com/js/250/addthis_widget.js#pubid=your_id";
if (window.addthis) {
window.addthis = null;
window._adr = null;
window._atc = null;
window._atd = null;
window._ate = null;
window._atr = null;
window._atw = null
}
$.getScript(adthis_url)
From:
http://railsforum.com/viewtopic.php?id=50604
No comments:
Post a Comment