Of course! Many thanks Jeremy. On Aug 20, 3:02 am, Jeremy Geerdes <jrgeer...@gmail.com> wrote: > for(var i=0;i<searcher.results.length;i++){ > var result=searcher.results[i], > phoneNumber; > if(result.phoneNumbers && result.phoneNumbers.length>0){ > phoneNumber = searcher.results[i].phoneNumbers[0].number; > } > alert(phoneNumber ? phoneNumber : 'No phone number here'); > > } > > That will alert the first phone number for every result you receive. > > Jeremy R. Geerdes > Effective website design & development > Des Moines, IA > > For more information or a project quote:http://jgeerdes.home.mchsi.com > jrgeer...@gmail.com > > If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan > Church! > > On Aug 19, 2010, at 8:53 PM, jhodgski wrote: > > > The API docs say that GlocalResult.phoneNumbers[] supplies an array of > > phone number objects where each object contains a .type property and > > a .number property... but how can I extract an actual phone number > > from a phone number object? > > > A code snippet would be much appreciated! > > > Thanks in advance, > > James > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google AJAX APIs" group. > > To post to this group, send email to > > google-ajax-search-...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-ajax-search-api+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-ajax-search-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-...@googlegroups.com. To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.