[jQuery] Re: (autocomplete) Is it possible to cache the empty results ?

2009-09-03 Thread mathieuuu
I found it : in fact I had to replace "if (data && data.length)" by "if (data)" and now it's working with empty results. Shouldn't it be the appopriate behaviour ? On Sep 3, 2:47 pm, mathieuuu wrote: > Does somebody has any idea ? > >

[jQuery] Re: (autocomplete) Is it possible to cache the empty results ?

2009-09-03 Thread mathieuuu
Does somebody has any idea ? On 31 août, 15:28, mathieuuu wrote: > Hi, > > Thanks for your answer rupak but I tried your fix and it did not give > the expected result. > On the contrary, now I think that the plug in is no longer using > cache, even for non-empty results... >

[jQuery] Re: (autocomplete) Is it possible to cache the empty results ?

2009-08-31 Thread mathieuuu
ges in autocomplete.js > > Search for "*if (data && data.length*)" condition which is inside "request" > function. Add this code before the *if * condition > > if(data) >     data.length=0; > > Thanks > Rupak > > On Mon, Aug 31, 2009 at 3:36 PM, m

[jQuery] (autocomplete) Is it possible to cache the empty results ?

2009-08-31 Thread mathieuuu
Hello, I am currently using the jquery autocomplete ($Id: jquery.autocomplete.js 5785 2008-07-12 10:37:33Z) with remote data. Obviously I did not disabled the cache and "matchSubset" option (all matches of "foot" are a subset of all matches for "foo"), which reduces the number of queries made to