AJAX自动完成+ XML API [英] AJAX AutoComplete + XML API
问题描述
我们有一个API,可以返回一堆XML,这些XML的公司名称在< name></name>标签.
我想创建一个自动完成文本字段,该字段将向API发出请求,获取结果,并在用户输入要搜索的公司名称时显示它们.
我知道我必须使用AJAX扩展才能自动完成,但是我不确定如何处理XML请求并在此处进行提取.
请求基本上是通过get方法发送的像这样:http://donor.hepdata.com/search/match?name=google是公司的名称.
任何指针将不胜感激.
We have an API which returns a bunch of XML with company names within <name></name> tags.
I'd like to create an AutoComplete textfield which would make requests to the API, fetch the results, and display them as the user is typing in the name of the company to search for.
I understand that I have to use an AJAX Extension for the auto-completion, but I'm not sure how to tackle the XML requests and fetching here.
The requests are basically sent via a get method like so: http://donor.hepdata.com/search/match?name=google where "google" is the name of the company.
Any pointers would be grealy appreciated.
推荐答案
您好,
您可以尝试将查询发布到 forums.asp.net.
希望有帮助!
这篇关于AJAX自动完成+ XML API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!