sharethis

Sharethis button does not work on pages loaded via ajax

元气小坏坏 提交于 2019-11-30 06:32:27
问题 I am trying to use the sharethis button on a page which is loaded via ajax. The buttons do not show up. Please help. Regards, Pankaj 回答1: After adding the new content to the dom, call stButtons.locateElements(); // or if you want to be a bit defensive about whether the lib has been // loaded or not: if (window.stButtons){stButtons.locateElements();} // Parse ShareThis markup Article another another 回答2: Updated 09/2017 Answer The stButtons object doesn't exist anymore, now you can use window.

How to dynamically create “Share This buttons” with a custom URLs with a javascript function?

血红的双手。 提交于 2019-11-29 09:51:22
im using the http://sharethis.com/ buttons to give users on a website a simple way to share content. They have information on "custom buttons" here: http://help.sharethis.com/customization/custom-buttons It looks like to specify the URL, in the example all they have its just html like this: <span class="st_sharethis" st_url="http://mycustomurl.com" st_title="Sharing Rocks!" displayText="ShareThis"></span> But I need to be able to dynamically create buttons on the fly without reloading the page. So, In a flash application i'm building i have a "share button" that triggers a javascript function

How to dynamically create “Share This buttons” with a custom URLs with a javascript function?

元气小坏坏 提交于 2019-11-28 03:30:20
问题 im using the http://sharethis.com/ buttons to give users on a website a simple way to share content. They have information on "custom buttons" here: http://help.sharethis.com/customization/custom-buttons It looks like to specify the URL, in the example all they have its just html like this: <span class="st_sharethis" st_url="http://mycustomurl.com" st_title="Sharing Rocks!" displayText="ShareThis"></span> But I need to be able to dynamically create buttons on the fly without reloading the

How to show particular image as thumbnail while implementing share on Facebook?

此生再无相见时 提交于 2019-11-26 12:15:41
问题 I am trying to implement share this method. I am using the code as follows http://www.facebook.com/share.php?u=my_website_url Now when Facebook is showing it showing some thumbnails at left side. These images are picked from my website. How can I pick a particular image as thumbnail or at least stop it showing thumbnail? You can check it with my blog address. 回答1: This blog post seems to have your answer: http://blog.capstrat.com/articles/facebook-share-thumbnail-image/ Specifically, use a