Thursday, October 20, 2011

Reload AddThis Script Ajax

Quando se faz replace do html do AddThis, temos de fazer reload do script, aqui fica uma maneira de fazer (Precisa de jquery).


var script = 'http://s7.addthis.com/js/250/addthis_widget.js#domready=1';
if (window.addthis){
    window.addthis = null;
}
$.getScript( script );


Source:
http://stackoverflow.com/questions/1603835/addthis-button-will-not-work-inside-ajax-but-will-work-normally


No comments:

Post a Comment