: Display Google Custom Search results on your own site Is there a way for Google's Custom Search engine to show it's results on a page on your website? On a custom page which you put on your
Is there a way for Google's Custom Search engine to show it's results on a page on your website?
On a custom page which you put on your server, so you can still display ads and links to pages in your site together with the search results?
More posts by @Rambettina238
3 Comments
Sorted by latest first Latest Oldest Best
do something like this - This may not work as is, but play around with it till it does
<form action="http://www.google.com/search" method="get" onSubmit="googleSearch(this)">
<input name="XXX" type="text" value="SEARCH ..." >
<input type="submit" >
</form>
<script>
function googleSearch(thisG){
thisG.value="site:http://mysite.com"+thisG.XXX.value
</script>
}
Or you can use Bing, which has an XML api and doesn't charge for an unbranded search as google does.
You can host the results from a CSE as an iframe on your site:
www.google.com/support/customsearch/bin/answer.py?hl=en&answer=70330
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.