views:

27

answers:

1

hi, jQuery autocomplete plugin sent request like this

mysite.com/suggestion?term=Sadegh

is there any way to change term querystring key to another? i can't find option that provide this for me ;)

+2  A: 

I assume you're using jQuery UI AutoComplete

You need to provide a callback as the source, like this:

$(...).autocomplete({
    source: function(term, callback) {
        $.getJSON("url", { foo: term }, callback);
    }
});
SLaks
and second quetion: how i can apply effect like fade to list of suggestions?
Sadegh
when that shows or hides
Sadegh
Handle the `open` and `close` events.
SLaks
how? can you more describe?
Sadegh
Ask a separate question.
SLaks
no thanks, resolved ;)
Sadegh