Bootstrap Typeahead local, prefetch, or remote is required

16,884

This only means you need to give a list in which Typeahead will search for completion value.

You must really pass at least one data source (prefetch or remote) or a data set (local).

https://github.com/twitter/typeahead.js#jquerytypeaheaddatasets


Also, should be noted that Twitter typeahead and Twitter Bootstrap typeahead ain't the same plugin. They have different API. The article you read speak about Twitter Bootstrap typeahead: http://twitter.github.io/bootstrap/javascript.html#typeahead but you used it as Twitter typeahead!

Share:
16,884

Related videos on Youtube

daniel
Author by

daniel

Always searching for contracts as a freelancer. My Blog https://zuidinga.de Newest Project: Cloud based FEA/FEM Simulation Moreover i am developing a site for engineers where they can find machine parts from manufacturers: http://www.engineeringonline.de (I am mechanical engineer besides my coding life) I am self employed. I prefer c#/.NET over Java at the moment and static typed languages compared to dynamic scripting languages.

Updated on June 04, 2022

Comments

  • daniel
    daniel almost 2 years

    I try to get this example of twitters typeahead to run but i am getting the error in chromes console:

    Uncaught Error: one of local, prefetch, or remote is required jquery-1.9.1.js:507

    I am using typeayhead 0.9.1 (Nuget-Package). Is this a version problem? All examples set the source and not local/prefetch/remote in the request.

    EDIT: Turned out that Twitter Bootstrap Typeahead and Twitter Typeahead are two different libraries.

  • daniel
    daniel about 11 years
    no? look at the example. Nearly in all examples i find the source attribute is set and not local/prefetch/remote
  • Simon Boudrias
    Simon Boudrias about 11 years
    Oh, I see what the problem is. Twitter Typeahead and Twitter Bootstrap typeahead ain't the same plugin. They have different API. The article you read speak about twitter bootstrap typeahead: twitter.github.io/bootstrap/javascript.html#typeahead
  • daniel
    daniel about 11 years
    yes i did also think that these are the same projects...