Support » Plugin: Share Buttons by AddThis » [Plugin: AddThis] ag.href is undefined in async mode

  • I load addthis in async mode:

    Addthis is initialized with:


    When executing addthis.update('share', 'url', url); to change the url during runtime, i get the js error ag.href is undefined.
    The url is changed, but execution stops so a subsequent addthis.update('share', 'title', title); will not be performed.
    Issuing the addthis.update('share', 'title', title); first produces the same error.

    Do i do something wrong or is there a better way to change url and title during runtime (asynchronously) without js execution stop?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I did some more testing, also in normal load (sync) the same problem.
    The example from the API guide:

    var url = "";
    var title = "New title!";
    addthis.update('share', 'url', url);
    addthis.update('share', 'title', title);
    addthis.update('config', 'ui_cobrand', 'New Cobrand!');

    simply crashes during the first addthis.update with the ag.href undefined error.

    Since a few days the errormessage has changed into g.href is undefined

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: AddThis] ag.href is undefined in async mode’ is closed to new replies.