My implementation doesn't work

tatanasoska Jul 12, 2012 09:57AM EDT

Hello,

I am doing this at my site:
I send these values trough jquery

$('div#something').attr('addthis:url', url);
$('div#something').attr('addthis:title', note.title);
$('div#something').attr('addthis:description', note.message);

And they are sent successfully and filled also.
this is a link to my site in development http://republikamladi.reactororg.webfactional.com/debate/1/ one of the pages I am using this.
The point is I have to add the attributes dynamically because I need different AddThis for every note I have that opens ads modal in bootstrap. They all have their unique url, and that is passed correctly .
Why does than the widget still thinks that there is only one page?

I tried sending the whole AddThis code trough Jquery and it worked that way, but I needed to reload the page every time accessed a new new for the buttons to show, so that is not an option obviously.

Can you help me please?

Thank you,
Tamara

1 Community Answers

Paul Jul 16, 2012 11:57AM EDT

If you're modifying the attributes of the AddThis toolbox you need to call the addthis.toolbox() function to re-load the attributes.


This question is closed to new answers.

Still need help?


General Topics

 

Developers