Skip to content

Instantly share code, notes, and snippets.


Created May 20, 2010
What would you like to do?
<td bgcolor="#FFFFFF">
<!-- Experiment with Buzz posts on home page -->
<div id="content">
<span class="listHead"> Recent posts from <a href="">my Google Buzz account</a></span>
function handleResponse(response) {
for (var i = 0; i < 5; i++) {
var item =[i];
//TODO(ade) Escape the titles.
// In production code, item.title should have the HTML entities escaped.
document.getElementById("content").innerHTML += "<span class='listItem'><a href='" + item.links['alternate'][0]['href'] + "'>" + item.title + "</a></span>";
<!-- Use the numeric identifier rather than my explicit username so that it doesn't give away my email address-->
<script src=""></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment