I am loading all articles with Ajax but Addthis functionality is not correct
$thisChild.load( permLink + \' #thePostStuff\', function() {
And
Executing this line of code after an AJAX call works for me:
addthis.layers.refresh();
Below is my setup for AddThis
Script
I put this code where I want AddThis
to show
How I do AJAX call
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState === 4 && this.status === 200) {
// Update the DOM
if (typeof(addthis) != 'undefined' && addthis != null)
addthis.layers.refresh();
}
};
xhttp.open("POST", "", true);
xhttp.send();
Result