Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
115
rated 0 times [  119] [ 4]  / answers: 1 / hits: 17179  / 11 Years ago, thu, april 18, 2013, 12:00:00

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.


More From » jquery

 Answers
2

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!


[#78797] Wednesday, April 17, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaredsages

Total Points: 273
Total Questions: 97
Total Answers: 105

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
jaredsages questions
;