Hi Erdem, Your code actually works fine when I tried it with my contacts. :) The postal addresses were printed.
Are you sure your contact actually have addresses? ;) Cheers! Nicolas On Sat, Feb 12, 2011 at 2:01 PM, Erdem <[email protected]> wrote: > Hi, > I am using javascript library to fetch the contact data > > To get the address field I am trying to use the code below, but it > does not return a data > > > var Addresses = contactEntry.getPostalAddresses(); > for (var j = 0; j < Addresses.length; j++) { > document.getElementById('add'+j).value+=Addresses[j].getValue(); > } > > While this works fine > > var emailAddresses = contactEntry.getEmailAddresses(); > for (var j = 0; j < emailAddresses.length; j++) { > document.getElementById('email'+j).value > +=emailAddresses[j].getAddress(); > } > > Does anybody has an idea? > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html > -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html
