.execute expects a query argument. Also, LocalSearch is not the same as a web search of a directory on your domain.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Jul 26, 2010, at 6:17 PM, Paul wrote: > Hi > I just set up a Google search for directory on a domain. I received > the key and implemented the search. However, when I search, nothing > happens. Is there something else I need to do? > > Below is the key/function I am using. It is limited to just seaching > my site. Does anyone have any ideas? > > Paul > > > <script src="http://www.google.com/jsapi? > key=ABQIAAAAKkdcQnG5ibIH5TrJS1pzsBS7Vib274SNYtfYKyMnP9kJl- > AGexSQtjf09HWmXPROgHUDvFKRtkCIfQ" type="text/javascript"></script> > <script language="Javascript" type="text/javascript"> > //<![CDATA[ > > google.load("search", "1"); > > function OnLoad() { > // Create a search control > var searchControl = new google.search.SearchControl(); > > // Add in a full set of searchers > var localSearch = new google.search.LocalSearch(); > // searchControl.addSearcher(localSearch); > > > // Set the Local Search center point > localSearch.setCenterPoint("Albany, NY"); > > // Tell the searcher to draw itself and tell it where to attach > searchControl.draw(document.getElementById("searchcontrol")); > > // Execute an inital search > searchControl.execute(); > } > google.setOnLoadCallback(OnLoad); > > //]]> > </script> > > -- > 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. > -- 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.
