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
0
votes
1 answer

How to set up 'Access-Control-Allow-Origin' headers with Typeahead / Bloodhound?

I am trying to integrate an autocomplete field that gets its information using REST. I am using Typeahead/Bloodhound. I followed up the example from the documentation, but I can't find anywhere how to setup the headers, in order for this to work.…
R T
  • 1,038
  • 9
  • 17
0
votes
1 answer

Conflict with twitter bloodhound with jQuery Validation plugin

I'm using twitter's bloodhound suggestion engine, following is the code snippet I'm using // instantiate the bloodhound suggestion engine var searchData = new Bloodhound({ datumTokenizer: function (d) { return…
Mahesh.D
  • 1,691
  • 2
  • 23
  • 49
0
votes
0 answers

Should I query the database as user types or left the job to Bloodhund?

I'm using Typeahead.js to search products in our webapp. We are currently using Bloodhound to do a remote fetch of suggestions. In the server, I'm doing a database query using the string entered by the user. But I suspect, that the idea of using…
Romias
  • 13,783
  • 7
  • 56
  • 85
0
votes
1 answer

Typeahead.js Bloodhound - Object has no method split

I'm trying to make Bloodhound work. The code I have: var licenses = new Bloodhound({ datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.value); }, queryTokenizer:…
user1049961
  • 2,656
  • 9
  • 37
  • 69
0
votes
1 answer

Twitter typeahead 0.1 w/ bloodhound -- can't get prefetch working with URL

I have this code in JS which works very well. var values = new Bloodhound({ datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.num); }, queryTokenizer: Bloodhound.tokenizers.whitespace, remote:…
Jeremy
  • 5,365
  • 14
  • 51
  • 80
0
votes
1 answer

Input disabled in Bootstrap 3 typeahead

I'm using multiple inputs in a bootstrap modal window (which is loaded via AJAX). I want on those inputs work typeahead.js integrated with Bloodhound. The datasets are loaded correctly (as JSON), but for some reason I do not understand the inputs…
-1
votes
1 answer

Ajax Jquery object not working like javascript's object

I am using the typeahead JS to setup typeaheads in my controls. the code to input the array of class objects is like this: var companylist2 = [ { word: "Alabama" }, { word: "Alaska" }, { word: "Arizona"…
LuxuryWaffles
  • 1,518
  • 4
  • 27
  • 50
-1
votes
1 answer

Using Typeahead Bloodhound inside a jQuery plugin

I have a basic jQuery plugin defined as such: (function( $ ){ var new_row_num = 0; // Test data for now var courses = [ { course_num: "M118", title: "Finite Math" }, { …
alexw
  • 8,468
  • 6
  • 54
  • 86
-1
votes
1 answer

How to set request headers asynchronously in typeahead/bloodhound

Environment: I am using typeahead/bloodhound for a search field in my mobile app (steroids/cordova) Every request from my app to the API needs to be signed and the signature added to auth headers Obviously setting the headers in the ajax settings…
-2
votes
2 answers

Symfony 5 Typeahead search

I need help for my javascript, I'm trying to create a search form with autocompletion with typeahead, but for the moment I'm getting "undefined" when I write something in the input : Undefined This is my code : $(document).ready(function () { …
1 2 3
18
19