hi!I have a sitesearch (restricted to my website search) and a
websearch (normal google search) and i want both to appear on a div, i
tried several methods and i couldn't find a answer either does anyone
knows what to do?
The code:
function initialize() {
var searchControl = new google.search.SearchControl();
options = new google.search.SearcherOptions();
options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
options.setRoot(document.getElementById("research"));
searchControl.addSearcher(new google.search.WebSearch(),
options);
var siteSearch = new google.search.WebSearch();
siteSearch.setUserDefinedLabel("CanalComercio.com.br");
siteSearch.setUserDefinedClassSuffix("siteSearch");
siteSearch.setSiteRestriction("canalcomercio.com.br");
searchControl.addSearcher(siteSearch, options);
searchControl.draw(document.getElementById("googles"));
}
Thanks!
--
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.