AddToAny Blog

New menu API, examples, documentation

February 10th, 2010

Over the past couple weeks we have been rolling out a new sharing menu API for AddToAny.  Our primary goal was to make AddToAny self-contained while maintaining perfect backwards compatibility with our old API.

What’s new?

Essentially, the new API is just a new syntax for customizing AddToAny, though we have exposed a few new customizations and techniques that you’re welcome to try out.

What’s changed?

Aside from the optional new syntax, most of the changes are under the hood.  Instead of configuring AddToAny using global variables, which in theory could collide with other global variables, you can now configure AddToAny under one self-contained object, a2a_config.  Additionally, the single object method offers a slight speed gain in modern browsers, and occasionally a noticeable difference in older A-Grade browsers on JavaScript-heavy pages.  Speaking of which, AddToAny’s intensive support for all A-Grade browsers (and more) continues with our long held believe that sharing should be quick and easy for as many devices and user-agents as possible, both old and cutting edge.

Transitioning to the new API

While transitioning to the new API is optional at this point, there are some important aspects to note.

  • All transitioned properties take the same name as their legacy global counterparts
  • Future properties will not have a supported global equivalent
  • Be careful with syntax and handling of the a2a_config object
  • Definitely check out the thorough examples and documentation, and list of available properties

If you have any questions or run into any problems at all, feel free to get in touch with us directly.  Happy early Valentine’s Day!

  • Share/Save/Bookmark

Tags: ,

This entry was posted on Wednesday, February 10th, 2010 at 8:48 pm.
You can follow any responses to this entry through the RSS 2.0 feed.

3 Responses to “New menu API, examples, documentation”

  1. Luca Says:

    I add the Google Buzz custom service in the wordpress plugin. maybe it can be helpful?
    http://www.thinkless.net/2010/02/12/buzzer-vs-twi

  2. Pat Says:

    Thanks Luca, it's been very helpful – I've already linked quite a few people to your post. :)

    FYI as soon as Google Buzz has an official endpoint, we'll include it within AddToAny.

  3. vbulletin 4 styles Says:

    Cheers for this, this is perfect for my sites, and this loads much faster than other plugins like this, set up a donation button and i'll be glad to contribute for your efforts, thanks.. i do wonder if it is possible to make this work within a vBulletin website, i am referring to my vbulletin 4 styles website, this would really be handy if it was possible, maybe i can try using the the html version ?