2

I've added my code to pastebin at the following address: http://pastebin.com/L03zGPhS The service is up and running. I can invoke it. I am additionally using firebug and getting the following results on the POST:

POST http://localhost:51204/AddrService.asmx/GetZipCode
15ms    
HeadersPostResponse
JSON
zip
"40"
Source
{'zip': '40' }

Showing the service function:

  [WebMethod]
  public List<Zip> GetZipCode(string zip)

I can get this to work with jQuery 1.4.2, but I'm upgrading a lot of jQuery widgets to 1.8 and can't get the autocomplete to work. Am I missing something they changed in the AJAX autocomplete call. Documentation to a correct answer will suffice if it is useful.

UPDATE I found through Google Chrome that I'm getting a 500 error. I'm not certain why because I'm hitting localhost on both the service and the aspx page. Does anybody know if they changed something that would affect the security of hitting localhost, or if I could have possibly left out and important jQuery reference that would let autocomplete work for 1.4 but not 1.8?

4

1 回答 1

0

也许这可以阐明您的问题——自动完成 API 指出:

“即使遇到错误,您也必须始终调用响应回调。这样可以确保小部件始终具有正确的状态。”

(来源:http ://api.jqueryui.com/autocomplete/#option-source )

于 2012-12-27T18:02:57.337 回答