0

Is it possible to construct a typeahead.js / bloodhound.js (or similar) search that is XML (not JSON) based? I have a large XML document in memory already, and I'd hate to make another copy of it to accommodate JSON.

William Walseth
  • 2,803
  • 1
  • 23
  • 25

1 Answers1

0

Yes, you can write a custom search handler that bypasses Bloodhound by setting a function in the source parameter as is shone here: http://www.ur-ban.com/2015/08/04/using-typeahead-js-without-bloodhound/

Chad Gilbert
  • 36,115
  • 4
  • 89
  • 97
  • Could you explain this a bit more? As I'm trying to use an external XML file as my source, but I keep getting origin error messages. Plus, the example you linked to above doens't seem to work for me. What info do you need? – Lee Jul 01 '16 at 15:24