Jose schrieb:

    You asked how you could implement these features w/out modifying
    the source
    code, so I tried to provide some solutions. :)


Thanks. I just want to make sure my needs are taken into account give that autocomplete
code is being worked on.
Dunno yet how that can be implemented, but usage could like this:

var options = {
        url: "somefile",
        extraParams: { you: "me" }
};
$("input").autocomplete(options);
// some time later
options.url = "otherfile";

Currently that doesn't work because url is a single parameter (easy to change) and the passed-in options argument is cloned (not hard, but not trivial to change). It may suffice to clone the options as normal, extending the defaults, and using the original argument for url and extraparams. There are no defaults for those anyway.

--
Jörn Zaefferer

http://bassistance.de

Reply via email to