Post a Comment if (!window.google || !google.friendconnect) { document.write('' + ''); } if (!window.registeredBloggerCallbacks) { window.registeredBloggerCallbacks = true; var registeredGadgets = []; gadgets.rpc.register('registerGadgetForRpcs', function(gadgetDomain, iframeName) { // Trim the gadget domain from a random url (w/ query params) // down to just a top level domain. var startIndex = 0; var protocolMarker = "://"; // Find the start of the host name if (gadgetDomain.indexOf(protocolMarker) != -1) { startIndex = gadgetDomain.indexOf(protocolMarker) + protocolMarker.length; } // Now find the start of the path var pathIndex = gadgetDomain.indexOf("/", startIndex); // Now extract just the hostname if (pathIndex != -1) { gadgetDomain = gadgetDomain.substring(0, pathIndex); } gadgets.rpc.setRelayUrl(iframeName, gadgetDomain + "/ps/rpc_relay.html"); // Just return some random stuff so the gadget can tell when // we're done. return "callback"; }); gadgets.rpc.register('getBlogUrls', function() { var holder = {}; holder.currentPost = "http://www.blogger.com/feeds/6422963579137085554/posts/default/8833226268583838810"; holder.currentComments = "http://www.blogger.com/feeds/6422963579137085554/8833226268583838810/comments/default"; holder.postFeed = "http://www.blogger.com/feeds/6422963579137085554/posts/default"; holder.commentFeed = "http://www.blogger.com/feeds/6422963579137085554/comments/default"; return holder; }); gadgets.rpc.register('requestReload', function() { document.location.reload(); }); gadgets.rpc.register('requestSignOut', function(siteId) { google.friendconnect.container.openSocialSiteId = siteId; google.friendconnect.requestSignOut(); }); } BLOG_CMT_createIframe('http://www.blogger.com/rpc_relay.html', '17110421292379062730');