You can currently get up to 32 results, 8 results at a time using the JS API's gotoPage() method. For more information on using gotoPage, check out the documentation at the link below:
http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GSearch If you want to get all of the results for simultaneous display, check out my blog post at the link below. Make sure to check the comments, as there is an important bug fix in there. http://jgeerdes.blogspot.com/2008/12/how-to-get-all-results-available-from.html Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On Sep 2, 2009, at 8:04 AM, Richardson wrote: > > Hi, > function abc() > { > ....... > searchControl.setSearchCompleteCallback(this, gotResults); > } > > function gotResults(sc, searcher){ > var restaurants = new Array(); > for (i=0; i<searcher.results.length; i++){ > ....... > ....... > } > } > > From the above code I am able to get 4 results only. How to get all > reesults from Local search API. > > Thanks in advance. > > Regards, > Richrads... > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX 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://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---
