google-plus-one

Google +1 and Android not working?

女生的网名这么多〃 提交于 2019-12-13 02:11:28
问题 just bought a Samsung Galaxy II with Android, and by testing my website on it, I realised the Google +1 button is not showing up. I tried to reduce it to very problem, and ended up with this code :) <!DOCTYPE html> <html> <head> <title>website mobile</title> </head> <body> <g:plusone></g:plusone> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> </body> </html> when I save it to my webserver and try to load in normal Android browser, the +1 button is not

Google +1 code validation error: missing attribute

我的未来我决定 提交于 2019-12-13 01:25:00
问题 My code: <g:plusone annotation="inline"></g:plusone> I get this error: there is no attribute "annotation" element "g:plusone" undefined Why? 回答1: You have two choices Change to using this style markup <div class="g-plusone" data-size="tall" ... ></div> Add the XML NS for google's <g: syntax to the <html tag of the document. Now if only Google would share where that xml namespace is located... (So really, just try option 1) 回答2: There is no attribute called "annotation" for any element

How to open the link in new window of Google Plus Badge?

匆匆过客 提交于 2019-12-12 01:08:34
问题 I have in my website the code of Google Plus Badge and Google +1 Button I need that the link to Google+ page (generate by Badge) open in new Window. If you have other way, I need: Link to Google+ Page. Add function for add to circles. +1 Button with the count. All in a line. My code look as: <table> <tr> <td style="padding-top:2px; vertical-align:top;"><div style="width:180px; height:30px; overflow:hidden;"> <div style="margin-top:-15px; margin-left:0px;" title="International Studies Google

How to check if custom URL is +1'ed with Google Plus API?

耗尽温柔 提交于 2019-12-11 19:56:37
问题 How can I check if user has +1'ed external page from my own page if I know his credentials? 回答1: There is no way to do this with the current APIs. There is, however, an active feature request. If you star the issue, you will be notified when it is updated. 来源: https://stackoverflow.com/questions/11761486/how-to-check-if-custom-url-is-1ed-with-google-plus-api

specify custom url to gplus one button

♀尐吖头ヾ 提交于 2019-12-11 19:09:07
问题 I have this code <div class="google_button"> <g:plusone size="medium" annotation="none"></g:plusone> <% case I18n.locale.to_s %> <% when 'en' %> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <% when 'es'%> <script type="text/javascript"> window.___gcfg =

Does Google Plus Button API Support Internet Explorer 8

我与影子孤独终老i 提交于 2019-12-11 02:49:33
问题 Does anyone know if the Google Plus Button is supported in IE8? This question suggests that it does not support IE7: Google +1 Button not working in IE7?. Additionally, the question links to a page (http://support.google.com/accounts/bin/answer.py?hl=en&answer=1151309) that suggests that IE8 is supported. Interestingly, when I visit that page in Chrome, I get the G+ button, but when I visit it in IE8, I do not. Any thoughts? 回答1: There's one odd-ball version of IE8 (version 8.0.7600.16385

How to check user has liked(+1) google+ button on website or url?

…衆ロ難τιáo~ 提交于 2019-12-10 22:45:56
问题 How to get like status of google+ button on website or url? I am using PHP. 回答1: Unfortunately this isn't quite possible. Neither the REST API nor the PlusOne button itselfs provides a method to check whether a user has +1'd the page or not. Furthermore, if you're using PHP, the user would have to authenticate himself first (using OAuth), so that's probably not what you want, anyway. What you can do, however, is using Javascript to catch actions of the current visitor. You can specify a

Getting Google Plus button to show after inserting markup with ajax

泄露秘密 提交于 2019-12-10 22:28:06
问题 I'm trying to load a google+ 1 button on a page, the goal is to have the buttons markup inserted into the page via ajax and then make the call for the button to be rendered. The button renders fine when the page is loaded first time around. The problem arises when the markup is fetched from /displaycode.php and then the render call is made again. <a href="javascript:void(0)" id="btn">REFRESH</a> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> {"parsetags":

How to load google plus share button in iframe?

和自甴很熟 提交于 2019-12-10 20:33:05
问题 Can anyone give me a solution on How can I load the Google plus share button (not the +1 button) in an iframe asynchronously. I have managed to do that for the +1 button. 回答1: Try this html snippet: <iframe src="https://plusone.google.com/_/+1/fastbutton?bsv&size=medium&hl=en-US&url=http://test.com/&parent=http://test.com/" allowtransparency="true" frameborder="0" scrolling="no" title="+1"></iframe> 回答2: If what you're trying to do is explicitly render the button when a user hovers over

hide plusone button after click

痴心易碎 提交于 2019-12-10 17:17:51
问题 I want to hide google's +1 button after the user clicks on it using jQuery; this is the code I'm using but it seems it's not functioning properly: JS: $(function() { $("#button").click(function() { $(".HIDE").hide(); }); return false; }); HTML: <div class="HIDE"> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone size="small" class="plusone"></g:plusone> </div> 回答1: Use the +1 tag callback parameter to fire the hide function. There's probably a