开发者

Jquery UI Autocomplete to search through multiple XML elements

开发者 https://www.devze.com 2023-03-15 17:26 出处:网络
I have a JQuery UI autocomplete widget that is currently looking at a database of contacts. Users can search by contact name, email, company etc. However the query is a little complex and can lag occa

I have a JQuery UI autocomplete widget that is currently looking at a database of contacts. Users can search by contact name, email, company etc. However the query is a little complex and can lag occasionally, so I am looking to switch it to a dynamically XML file for speed, yet I want to keep to ability to search on multiple fields. I cant not figure out how to do this currently, could anyone point me开发者_JAVA技巧 in the right direction of how to match the term to multiple XML fields? Thankyou.


This question of 2010 looks similar: Jquery ui autocomplete - multiple sources I would suggest combining the first answer with the second answer. As far as I remember when I was working with the JQuery autocomplete I found it required JavaScript Object Notation in order to function, not XML.

Hope this helps :)

0

精彩评论

暂无评论...
验证码 换一张
取 消