views:

75

answers:

1

Hi, I tried to implement an autocomplete field using jquery:

$('.autoComplete').autocomplete({
             source: function (request, response) {
                 $.ajax({
                     url: "keywords", type: "GET", dataType: "json",
                     data: { term: request.term, maxResults: 10 },
                     sucess: function (data) {
                         response($.map(data, function (item) {
                             return item
                         }))
                     }
                 })
         });

When typing something in the text box, it shows the loading icon. And with firebux (in firefox) I can see that the ajax request was successful.

Here's an example of response from the ajax request

["cabinet","candle","casino","central","chooser"] 

The results are not showing but the request is successful

Any idea?

+3  A: 

You have typo. "success" is spelt wrong; missing a "c"

edeverett
Thanks :) It is fixed
Lobsterm