Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7825753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:08:10+00:00 2026-06-02T09:08:10+00:00

i am trying to load and initialize the addthis.com widget via ajax in order

  • 0

i am trying to load and initialize the addthis.com widget via ajax in order to be able to reset the email variables inside the addthis_share object dynamically based on user input.

so far i am succeeding in loading the widget via ajax, but when i load it via ajax the button which i need the most is no longer part of the widget. this is very strange as i am using the exact same script to load both widgets.

the button which i need is the ‘Email’ button. the widget itself has two email buttons: one is called ‘Email’ and the other one is called ‘Email App’. the ‘Email’ one is the one which accepts variables which are passed to emails (and the one which is not showing up when i load it via ajax). you can verify what email buttons are part of the widget after it loads by: clicking on the widget (on the + button itself) and typing ’email’ in the search input field.

i have setup two js fiddles to illustrate the case. the first one loads the widget in the standard way (and you can see both email buttons there). the second one loads the widget via jQuery getScript and you can see that only the ‘Email App’ button shows up in it.

1) regular:
http://jsfiddle.net/FLAf4/

2) ajax:
http://jsfiddle.net/6QUWt/5/

i know that this is addthis.com specific question — i tried posting this question on customization/q&a part of their website and so far nobody has commented on it. thanks!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:08:11+00:00Added an answer on June 2, 2026 at 9:08 am

    Apparently you cannot set pub-id and async on the addthis script, so you should set #async=1 then set a global variable addthis_config that contains the publisher id, also you should have the addthis_share variable in the global scope and then assign the email template and email template variables to that global variable inside of the button click handler.

    http://jsfiddle.net/joeflateau/Bht2b/4/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load a StageWebView with the Google Maps Javascript API inside
i m trying load UIImages from server asynchronously in UITableViewCell. My code worked fine
I have a problem with out of memory when I'm trying load a few
Trying to load a shared lib out of the current '.' dir in a
trying to load in a bunch of images into a list from a directory...my
While trying to load a Bitmap onto a SWFLoader the Event.COMPLETE event is not
When trying to load Microsoft.Xna.Framework.dll from any project, it throws a FileNotFoundException. The specified
Im trying to load a image at runtime in WPF using the following code
I am trying to load a very basic XML document but everytime I get
I'm trying to load Gravatars into Flash. Luckily, they provided a crossdomain.xml file at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.