Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haochi/jquery.googlesuggest
Google Suggest for jQuery is an abstraction of jQueryUI's autocomplete widget that interacts with the unofficial/undocumented Google Suggest API.
https://github.com/haochi/jquery.googlesuggest
Last synced: about 8 hours ago
JSON representation
Google Suggest for jQuery is an abstraction of jQueryUI's autocomplete widget that interacts with the unofficial/undocumented Google Suggest API.
- Host: GitHub
- URL: https://github.com/haochi/jquery.googlesuggest
- Owner: haochi
- Created: 2013-10-13T18:38:30.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-07T23:41:20.000Z (over 9 years ago)
- Last Synced: 2023-03-15T22:10:32.129Z (over 1 year ago)
- Language: JavaScript
- Homepage: haochi.github.com/jquery.googleSuggest
- Size: 96.7 KB
- Stars: 35
- Watchers: 6
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Since this plugin builds on top of [jQueryUI's autocomplete](http://jqueryui.com/demos/autocomplete/) widget,
pretty much all of autocomplete's options/events are applies to it as well,
with the exception of `source`.Google Suggest for jQuery itself has 2 options: service and secure.
Options:
========| option | type | default | note
|---------|---------|---------|-----
| service | string | "" | It's used to specify what Google service to query against. It can be `web`, `youtube`, `products`, `books`, `news`, `images`, `recipes`, or "" (empty string). By default it queries Google's web auto suggestions (the `web` option).
| secure | boolean | false | It's used to specify whether to use HTTPS or not. By default it doesn't use secure connection.Example:
========//uses default settings
$("#selector").googleSuggest();//uses HTTPS
$("#selector").googleSuggest({secure: true});//queries Google Products
$("#selector").googleSuggest({service: "products"});//alerts the selected value
$("#selector").googleSuggestion({select: function(event, ui){ alert(ui.item.value); }});You can access the autocomplete settings directly.
$("selector").autocomplete("option", "disable");