Looking for a solution with multiple AddThis accounts/javascript in one page

howbowers Jun 14, 2012 05:55PM EDT

ISSUE: It seems that you cannot have multiple instances of AddThis javascript code on the same page (even different versions).

BACKGROUND: We create and host pages for websites on our own servers but include our client's header and footer through script on the pages so the user experience is consistent. Our client is using AddThis with their account and has the following script included in their header: http://s7.addthis.com/static/r04/menu00.js

We want to use a different implantation of AddThis on our page, that uses http://s7.addthis.com/js/250/addthis_widget.js so we can use the button style.

I can only assume that these two scripts are incompatible because when I try to put the copy and paste code into my site, the buttons will not show up at all.

It's not realistic to ask our client to remove their current script from their header, so any help that you could provide as a workaround would be appreciate.

URLs for reference
Client site: http://www.dollargeneral.com/product/index.jsp?productId=12715194&ab=HP_C2_8Pool_Prod_Price_Summer_061012
Page on our site: http://dollargeneral.triadretail.com/seasonals/summer-grilling/

Thank you!

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Jun 15, 2012 03:56PM EDT
So your client's implementation is incorrect. They should remove the reference to the menu00.js since that's added by the addthis_widget.js code, but like you said that's not feasible.

Also, I don't think they can be able to get it to work because the menu00.js file they're using is for an old version of AddThis and isn't compatible with the version of addthis_widget.js that you're loading. You might try downgrading to our version 1.52 - which is what it looks like they're using - by using this URL to load addthis_widget.js

http://s7.addthis.com/js/152/addthis_widget.js

If you'd like you can have your client contact us directly we can explain to them how to upgrade their code.

This question is closed to new answers.

Still need help?


General Topics

 

Developers