I don't know use "AutoComplete API" with "jQuery UI Autocomplete"

  • 1
  • Question
  • Updated 3 years ago
do you have a sample source code because I don't know... !
Photo of Kevin

Kevin

  • 4 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
Read the documentation here: http://www.wunderground.com/weather/a... and play around with it. It doesn't require a key.
Photo of Kevin

Kevin

  • 4 Posts
  • 0 Reply Likes
I already read this doc, but when call "http://autocomplete.wunderground.com/aq", I get the error: "Unexpected token"

I copy the source code of "http://jqueryui.com/demos/autocomplet..."

I just replace the parameter "url" function autocomplete
Photo of Kevin

Kevin

  • 4 Posts
  • 0 Reply Likes
Nobody can help me ?
Photo of wizdumb

wizdumb

  • 6 Posts
  • 0 Reply Likes
To use this with jQuery, you need to use JSONP with jquery's automatic callback.

The URL will look like this:

http://autocomplete.wunderground.com/...=?

Note the extra ? at the end, which jQuery handles with an automatically generated callback function.
Photo of Preet Singh

Preet Singh

  • 1 Post
  • 0 Reply Likes