google-plus-one


How can I get the state (“on” or “off”) of the Google +1 button?


The +1 API documentation is here: http://code.google.com/apis/+1button/#jsapi
There is no mention of how to determine whether the viewing user has already clicked the button or not. This would be a very useful function because it would allow me to encourage people who haven't +1'd a page to do so without putting users who have already +1'd the page through a needless and possibly confusing step.
Has anyone found a way to do this? Thanks
There is callback attribute, which allows you to add custom callback function, which can react to +1 or -1. See http://www.odditysoftware.com/blog/trap-and-track-google-plus-button-click-events_45.html
But your question is old, maybe it wasn't present yet.

Related Links

Google Plus Button counter acts differently with URL's that includes https
error in plusone button submit
change height of google plus 1 button
Does Google Plus Button API Support Internet Explorer 8
Google plus button don´t register +1
Sharing url on google plus via google plus button
Plus One Button not traversing the dom to grab snippet data
Searching Through Google +1 Links
Is there a way to get total number of google plus +1's for an entire domain?
phpQuery behaving weird, changing HTML
adjusting width of google plus 1 button
Google plus one button error
google plus one button statistics
google +1 button not showing up
Using Google +1 service without JavaScript
Google Plus One button shows fine on blog post but not on blog home page?

Categories

HOME
paypal
sass
filterrific
youtube-livestreaming-api
cocos2d-x-3.0
structuremap
jboss7.x
mongodb-query
squarespace
sign
lstm
zope
cairo
factor-analysis
saiku
aptana
boolean-expression
nmake
rails-activerecord
fop
kitematic
onsen-ui
nsmenuitem
tcpclient
myob
logarithm
osmdroid
mef2
metadata-extractor
upnp
entity-system
xen
strstr
brute-force
alchemy.js
android-preferences
microdata
median
rich-text-editor
filepath
dojox.grid.datagrid
estimation
floor
walmart-electrode
chown
jenkins-jira-trigger
applepayjs
openh264
gce
festival
atlassian-crowd
nsfetchedresultscontrolle
spring-ioc
spatial-query
dac
logcat
android-recyclerview
hyperthreading
enyo
mysqldumpslow
matcaffe
custom-url
musl
google-earth-plugin
ctrlp
funq
proxies
picat
httpcontext
joox
mimosa
exiv2
document-database
bignum
fogbugz-api
marmalade-edk
css-tables
legacy-code
jpf
flexicious
goliath
paintcomponent
sendfile
gethashcode
hardware-acceleration
task-management
aio
boost-date-time
winverifytrust
lazy-c++
visual-studio-dbpro

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App