Jquery.Autocomplete problem with parameters and resubmission

Jquery.Autocomplete problem with parameters and resubmission

Hi,

I am using the autocomplete jQuery plugin: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

I have a problem when using 'extraParams'. For example if I have

extraParams: {
    foo: "Bar"
}


The parameter foo is passed with the value "Bar". But, when I try to use a call back function to set this up so that it uses a value on a form like so:

extraParams: {
    foo: function(){ rethrn $("#Foo").val();}
}


It looks as though it does not work. On investigation (using Firebug) I see that one call is made to the server side script, which is not passing a value for Foo, the parameter is passed without a value. Immediately after that it seems to re-call the server side script again, then a third time. The third time it is called, it does not pass a value for the query,
q


I have seen this documented http://www.nabble.com/autocomplete-pass-extraparams-with-value-of-another-autocomplete-td18536699s27240.html

Has anyone experienced this problem before? Or anything similar? Can anyone offer any advice.

thank you for your time.