theundertaker
theundertaker

Reputation: 99

Reparse Google Plus Button?

I have a website where pages are loaded via AJAX so I reload the Facebook comments box and like button (FB.XFBML.parse()) each time a link is opened. I was wondering if there is a similar way to reload the Google Plus button with JavaScript for a page.

Upvotes: 2

Views: 1740

Answers (1)

DMCS
DMCS

Reputation: 31860

Parsetags should be set to explicit.

See: https://developers.google.com/+/plugins/+1button/

Then you can call gapi.plusone.go(); to have the tags re-parsed.

Upvotes: 4

Related Questions