Sharrre icon indicating copy to clipboard operation
Sharrre copied to clipboard

Sharrre did not work on ajax

Open srinivasan12in opened this issue 11 years ago • 2 comments

Hi,

When i load the social share content dynamically using ajax and php, the sharrre is not working. how can i load it dynamically.

Thanks and regards, R.Srinivasan

srinivasan12in avatar Mar 22 '14 13:03 srinivasan12in

Same here, when I dynamically load some content (with the sharrre button in it) with ajax, the parameters in the source arre correct but the template and the class are not applied to the new button. Even when I recall the initiliase script like this:

$.ajax({
    url: post_link,
    success: function(response) {
      $('.newest .hentry').remove(); // Remove excisting post
      $('.newest').append($(response).find('.newest .hentry')); // Add new post
      $('.newest .hentry #shareme').sharrre();
    }
});

How can I force this?

Twansparant avatar Aug 14 '14 10:08 Twansparant

Same here. Does anybody know of a workaround?

trick77 avatar Sep 12 '14 20:09 trick77