Questions tagged [bloodhound]

Bloodhound is the typeahead.js suggestion engine. It's robust, flexible, and offers advanced functionalities such as prefetching, intelligent caching, fast lookups, and backfilling with remote data.

Features

  • Works with hardcoded data
  • Prefetches data on initialization to reduce suggestion latency
  • Uses local storage intelligently to cut down on network requests
  • Backfills suggestions from a remote source
  • Rate-limits and caches network requests to remote sources to lighten the load

See the official documentation here.

280 questions
7
votes
2 answers

Using HTTP POST with typeahead js and bloodhound js

By default, bloodhound.js will query via HTTP GET, but that leaves you vulnerable to JSON hijacking. Since I have sensitive information that I want to load into typeahead, HTTP GET leaves me vulnerable. There used to be an option for picking post…
viggity
  • 15,039
  • 7
  • 88
  • 96
7
votes
1 answer

Bloodhound.js: Transform the data returned by a remote source?

I am using Bloodhound with a remote API and I need to transform the result returned from the remote API. The API URL is https://www.googleapis.com/books/v1/volumes?q=quilting which returns an object with an items property that is a list. I need to…
Richard
  • 62,943
  • 126
  • 334
  • 542
7
votes
2 answers

Pass a parameter into Bloodhound from Typeahead?

I am setting up a form with Typeahead. I have two input fields next to each other, and I need an autocomplete on each of them. My HTML looks like this: