Twitter Bootstrap - Typeahead Plugin with Remote Source

submitted by uklmhb on 09/29/16 1

Today I am going to show you how we can achieve the remote data source form the Typeahead plugin by Twitter Bootstrap. We are going to download the version (2.1.1) or later, depending on viewing time and use the newly built in function that Bootstrap has implemented to connect to a remote (PHP and MySQL) data source to return our results. AJAX will be used to send the query from the typeahead plugin to the PHP file, once we have the query in the PHP file, we will connect to the database and search for anything that is similar and add it to an array. We will then return this array as a JSON array so that the Typeahead plugin can process the data and display the results with the correct highlighting. If anyone wishes to have the code and the database structure and contents that I have used in the tutorial, please let me know via PM and I will be happy to provide you with all the source. Thanks for watching, feel free to ask for any tutorials you wish to see, please comment, rate and subscribe. Stayed Updated: Official Twitter: twitter.com/TheDevLounge Official Facebook: www.facebook.com/thedevlounge Udemy: www.udemy.com/iphone-ipad-development-for-beginners/

Leave a comment

Be the first to comment

Collections with this video
Email
Message
×
Embed video on a website or blog
Width
px
Height
px
×
Join Huzzaz
Start collecting all your favorite videos
×
Log in
Join Huzzaz

facebook login
×
Retrieve username and password
Name
Enter your email address to retrieve your username and password
(Check your spam folder if you don't find it in your inbox)

×