google-custom-search

How do browsers' Search boxes work? [closed]

谁说我不能喝 提交于 2019-12-05 07:20:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I need to precisely know how the search boxes on the browsers work. I would like to replace the search things, such as Wikipedia and Google, with customised search engines here at Mathematics. You can see them in iGoogle. So: How can I add Google CSEs to the browsers' search boxes? 回答1: You can create so called

How can I set a custom width on my Google search iframe?

梦想与她 提交于 2019-12-05 06:01:54
I am trying to use google search for my site: http://www.houseofhawkins.com/search.php It is not playing nice with some screen resolutions. Here is the code given from google: <div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 250; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> I changed the "googleSearchFrameWidth" down

How to use Google Custom Search on https to avoid non secure content prompt?

你离开我真会死。 提交于 2019-12-05 04:42:29
Is there a way to get the script for search results from an HTTPS site instead of http://www.google.com/afsonline/show_afs_search.js I am using the custom google business search on a HTTPS site. When search is submitted web browser shows warning: "This page contains both secure and nonsecure items" I tried to modify the source to be https://www.google.com/afsonline/show_afs_search.js but that doesn't work. Still JavaScript returned from that link connects to http links instead of https links. Does anybody knows how to fix this ? A hack that works for me is to provide a modified version of the

How to specify Image type in Google Custom Search

蓝咒 提交于 2019-12-05 02:34:57
I am using Google Custom Search to get images with some criteria. I am initiating HTTP Get requests from java application to call the Google Custom Search API (Please note I am NOT using javascript or css and I am NOT developing web site). I am able to get the images, and the program is working. the application brings images which has Jpg extension. I want to : bring ONLY the images which has png extension AND has transparent background. I tried to specify the filetype in the query string of the request URL like this https://www.googleapis.com/customsearch/v1?q=cars&filetype=png&cx=

How to replace google custom search engine's magnifying glass with a button that says “search”?

随声附和 提交于 2019-12-04 14:58:05
I'm using the basic code and the standard "compact" theme for GCSE: <script> (function() { var cx = '111111111111111111111:11111111111'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//cse.google.com/cse.js?cx=' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); </script> <gcse:search></gcse:search> This renders the input button as: <td class="gsc-search-button"> <input type="image" src="http://www.google.com/uds/css/v2

How to show next/previous links in Google Custom Search Engine paging links

爷,独闯天下 提交于 2019-12-04 13:46:12
The Google Custom Search integration only includes numbered page links and I cannot find a way to include Next/Previous links like on a normal Google search. CSE used to include these links with their previous iframe integration method. I stepped through the javascript and found the undocumented properties I was looking for. <div id="cse" style="width: 100%;">Loading</div> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en'}); google.setOnLoadCallback(function() { var customSearchControl = new

Java SSLException: hostname in certificate didn't match for www.googleapis.com

拥有回忆 提交于 2019-12-04 07:00:38
Environment : Mac OS X Lion & Linux Debian squeeze/sid, JDK 1.7.0 & JDK 1.6.0_27 Error : javax.net.ssl.SSLException: hostname in certificate didn't match: <www.googleapis.com/74.125.47.95> != <*.googleapis.com> OR <googleapis.com> OR <*.googleapis.com> . I'm getting this error in all the above OS/JDK combinations. Background : I am using google-api-services-customsearch and google-api-service-shopping jars to do webservice calls to Google. My calls were working correctly until a day ago. Since yesterday, the code has started to throw... javax.net.ssl.SSLException: hostname in certificate didn

Multiple GCSE's on page at one time.

拟墨画扇 提交于 2019-12-04 05:29:41
问题 Using the new GCSE code like so: // google custom search engine for the whole site (function() { var cx = '*****************'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//cse.google.com/cse.js?cx=' + cx + '&gname=sitesearch'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })(); and the element like so: <gcse:searchbox gname=

Google Api Keys for Windows Phone App

陌路散爱 提交于 2019-12-04 04:50:07
问题 I want to integrate google custom search in windows phone app for image searching I create the project on https://console.developers.google.com/ When i went to API & Authentication section of project description to create Api key,A popup is giving only four option server key,browser key,android key and ios key.There is no option to create api key for windows phone app. Is it not possible to integrate google custom search in windows phone app. 回答1: Feel free to opt for iOS key, it does not

How do browsers' Search boxes work? [closed]

半世苍凉 提交于 2019-12-03 21:27:15
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I need to precisely know how the search boxes on the browsers work. I would like to replace the search things, such as Wikipedia and Google, with customised search engines here at Mathematics. You can see them in iGoogle. So: How can I add Google CSEs to the browsers' search boxes? splattne You can create so called "Search Providers" for your sites. You should have a search page on your site which