title: Change AddThis url dynamically with jQuery
body: <p>I am trying to dynamically change the URL sent by addthis. When a user alters an element it updates a text area containing a custom url so they can return to that url and continue/view their work.</p>
  
  <p>I am creating an addthis button like so(from their API docs):</p>
  
  <pre><code>var addthis_share = {url:"http://www.johndoe.com"}
  $(document).ready(function(){
      var tbx = document.getElementById("toolbox"),
      svcs = {email: 'Email', print: 'Print', facebook: 'Facebook', expanded: 'More'};
      for (var s in svcs) {
          tbx.innerHTML += '&lt;a class="addthis_button_'+s+'"&gt;'+svcs[s]+'&lt;/a&gt;';
      }
      addthis.toolbox("#toolbox");
  });
  </code></pre>
  
  <p>Then when the url is updated I am trying to update the addthis share URL like so:</p>
  
  <pre><code>function updateURL(){
      ...get some variables here and generate a new url
      var newURL="http://the.url.i.want.to.share.com";
      $('#tagUrl').val(newURL);
      //addthis_share = {url:newURL}
      addthis_share = {url:newURL}
      addthis.toolbox("#toolbox");
  } 
  </code></pre>
  
  <p>The original buttons are getting generated and contain the correct url, but when the url update function executes the addthis share url is not getting updated.  How can I force it to update the addthis url?</p>