HTML5 introduces new tag datalist, which connected to <input list="datalistID"> provides autocomplete functionality.
Question is – what is the best way to connect this datalist suggestion to MySQL table with high amount of rows (let’s say 50K).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best way to connect it is via the
dataattribute or the<datalist>tag which takes any URI or IRI to get the data as XML.You can then change the URI/IRI based on the input value. And also you should limit your resultset to a useful maximum number of lines, you don’t want to transfer megabytes just for auto-complete.