Friday, 21 October 2011

Nonplussed one

I can’t believe I’m spending so much time on this; it’s a little bit obsessive. I noticed recently that the “share” part of “Recommend on Search, Share on Google+” had stopped working on the blog. What am I talking about? Why the Google +1 button of course!  For a while I assumed it was tinkering by the people at Mountain View, and then took a look yesterday because, even if it’s never used, you want to know it would work in the unlikely event of a click.

It was tinkering - at least, I think it was - though not in the way I’d thought. I assumed the code behind the button had changed whereas I discovered a run-time error in the JavaScript, and only because I happened to look using IE. How can I get Chrome to indicate there’s been a JavaScript error without spitting all over me; an extension no doubt?

Cue a bit of tinkering, moving the script to the bottom of the HTML before the </body> tag - where I realised it should be, but to no avail. Then out of curiosity I removed the script altogether. I expected to lose the button since without the script how would it be generated, but there it was. What’s more, the “share” part of the button’s function was now working. So all I have are the <g:plusone> elements and Blogger, a Google property after all, does the rest; until they change it back again. Stay tuned for more exciting adventures.

1 comments: