I'm currently using ajax to fetch a new page, but I'm encountering an issue where only the share buttons are being displayed without the share count.
$("body a").click(function(e) {
$.ajax({
url: ajax_url,
type: "GET",
dataType: "xml"
}).done(function(data, textStatus, jqXHR) {
if (typeof(history.pushState) != "undefined") {
var obj = {
Title: title,
Url: url
};
history.pushState(obj, obj.Title, obj.Url);
} else {
alert("The browser does not support HTML5.");
}
var $divToFind = $($.parseHTML(jqXHR.responseText)).filter("#radio-main-wrapper");
$('#radio-main-wrapper').html($($divToFind).html());
$.getScript("http://w.sharethis.com/button/buttons.js");
stButtons.locateElements();
}).fail(function(jqXHR, textStatus, errorThrown) {
});
});