try
On Apr 21, 10:27 am, Tom Worster <f...@thefsb.org> wrote: > On 4/20/09 10:35 PM, "James" <james.gp....@gmail.com> wrote: > > > Try: > > > $("#isearch").autocomplete("search_result.php", { > > extraParams:{isearch:$("#isearch").val()}, > > width:542, > > multiple: true, > > matchContains:true, > > cacheLength:0, > > minChars:1, > > delay:0 > > }); > > i'm not sure that's going to help Pitt. your fragment will execute at page > ready time and set the extra parameter "isearch" for subsequent searches to > whatever the _initial_ value of the field happens to be, quite likely an > empty string. > > if you want to send in an extra parameter an element's value at the moment > the query is sent then you can use a function: > > $("#isearch").autocomplete("search_result.php", { > extraParams:{isearch: function() { return $("#isearch").val(); }}, > ... > > but in this case it will result in queries with both paraneters "q" and > "isearch" set to the same value, which seems rather pointless.