Google search API
==============
I need to use restricted search for coupleof web sites
let say i need to get search both www.amazon.com and www.ebay.com & i
need to dispay it under " books " result coustom label
" siteSearch.setSiteRestriction("www.amazon.com");" ? how do i add
search for above both sites ?
I couldnt find way to search both sites. I was able to set search one
web site ("www.amazon.com") as shown in below custormized sample.
Please Help ...!!
Does anone had clear API documention of Google search api ????/
==========================================================
<script language="Javascript" type="text/javascript">
//<![CDATA[
google.load("search", "1");
function OnLoad() {
var siteSearch = new google.search.WebSearch();
siteSearch.setUserDefinedLabel("books");
siteSearch.setUserDefinedClassSuffix("siteSearch");
siteSearch.setSiteRestriction("www.amazon.com");
// Create a search control
var searchControl = new google.search.SearchControl();
searchControl.addSearcher(siteSearch);
}
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
-~----------~----~----~----~------~----~------~--~---