Try this...
Haven't tested...
var handleContactsFeed = function(result) {
var entries = result.feed.entry;
// Gets the div where you want to append the information to
var ouputDiv = document.getElementById('picker_container');
// Creates an unordered list element to display the email addresses
var emailList = document.createElement('ul');
// Appends the emailList UL element to the "picker_container" DIV
ouputDiv.appendChild(emailList);
for (var i = 0; i < entries.length; i++) {
var contactEntry = entries[i];
var emailAddresses = contactEntry.getEmailAddresses();
for (var j = 0; j < emailAddresses.length; j++) {
var emailAddress = emailAddresses[j].getAddress();
// Creates a list item for each email address
var contactItem = document.createElement('li');
//Created a text node to display the email address and
// Appends the text node to the LI element
contactItem.appendChild(document.createTextNode(emailAddress));
// Appends the LI element to the UL element
emailList.appendChild(contactItem);
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Contacts API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-contacts-api?hl=en.