The 'q' is hard-coded in the makeUrl() method. But it'd be simple enough to change it to grab the param name from the options hash:
var url = options.url + "?" + options.q + "=" + encodeURI(q); And adjust the jQuery.fn.autocomplete at the bottom of the file to reflect the change: options.q = options.q || 'q'; On Wed, Jan 14, 2009 at 12:12 PM, xavier <syd...@gmail.com> wrote: > > Hi, > > > Is there a way to modify the default names of the two parameters, so > instead of calling /search?q=<bla>&limit=10 it can call /search? > query=<bla>&max=10 > > I was hoping for something along that way: > > $("#searchfield").autocomplete( "/search", { > q: "query", > limit: "max" > }); > > But didn't find anything related in the doc > > The goal being, obviously, to avoid having to alter the server and > adjusting to the parameters it expects. > > X+