Update AddThis buttons in Ajax based Application

thomas.spreng May 15, 2012 08:09AM EDT

I am trying to update AddThis buttons (title and url) on a page which dynamically changes it's content without page page reload (the browser URL does change). I think I've read and tried all suggestions that I could find in this forum but none worked so far.

Does anyone know of a way to do so?

That's the code in the HTML page:
<!-- AddThis Button BEGIN -->
<div id="toolbox" class="addthis_toolbox addthis_default_style " style="margin-top:10px;">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#domready=1"></script>
<!-- AddThis Button END -->

That's the code I run after the page content has changed (which according to the documentation should be used to update any newly decorated links):
if (window.addthis) {
addthis.toolbox("#toolbox");
}

Thanks for any hits

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers