I'm working on a site right now where I need to build a URL before putting the button on the page. Here's how it works:
var googleplus = $("<g:plusone size='tall' href='http://google.com'></g:plusone>");
$("#container").append(googleplus);
gapi.plusone.go();
And in the head I have this:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
This works in Firefox/Chrome/IE 9, but not IE 8. I'm at a loss as to what else to do to make it work. I tried with the gapi.plusone.render() method as well, still no luck.