Maybe the old autocompleters should point to Jörn's (if his is the
most up to date) and recommend it as an alternative? It has been in
Alpha for a while (and I think the one in SVN is more up to date).

On Jul 27, 11:53 am, "Dylan Verheul" <[EMAIL PROTECTED]> wrote:
> Use a correct value for cacheLength and matchSubset
> (see docs for the original at athttp://www.dyve.net/jquery/autocomplete.txt)
>
> Tip: Use the latest and greatest 
> autocompleter:http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> Good luck!
>
> -Dylan
>
> On 7/27/07, (null) <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi everybody,
>
> > I'm trying to use autocomplete (this one:
> >http://www.pengoworks.com/workshop/jquery/autocomplete.htm) to suggest
> > street names to the user while he types them.
> > Because there can be quite a lot streets I decided to limit the result
> > to 10 entries server-side.
> > Now the problem:
> > Let's assume I got 10 elements beginning with "An" and 10 elements
> > beginning with "At".
> > Now the user types an "A" into the textbox. Autocomplete contacts the
> > server which returns the 10 "An" elements. Now the user types in a
> > "t", resulting in an "At". Autocomplete seems to think it got all
> > elements starting with "A" and therefore all which start with "At",
> > searches it's list, finds none, shows none, although my server has 10
> > results for "At".
>
> > Now if I understand the docs right, the option matchSubset should
> > control/disable this behaviour:
> > matchSubset (default value: 1)
> > Whether or not the autocompleter can use a cache for more specific
> > queries. This means that all matches of "foot" are a subset of all
> > matches for "foo". Usually this is true, and using this options
> > decreases server load and increases performance. Remember to set
> > cacheLength to a bigger number, like 10.
>
> > But it doesn't.
>
> > Also the minChars - Option is completely ignored.
>
> > I'd really appreciate any help!
>
> > Here is my code:
> > As an explanation for the _cityDropDownList - part: The user first
> > selects the city and the street and of course I need to tell my site
> > in which city the street is supposed to be.
>
> > <script type="text/javascript">
> >         jQuery(function()
> >         {
> >                 jQuery("#_streetTextBox").autocomplete("GetStreets.aspx", {
> >                         minChars:5,
> >                         matchSubset:0,
> >                         cacheLength:1
> >                 });
> >                 jQuery("#_cityDropDownList").change(function(event){
> >                         var ac = 
> > $("#_streetTextBox").autocomplete("GetStreets.aspx");
> >                         ac[0].autocompleter.setExtraParams({CityCode:
> > jQuery("#_cityDropDownList").val()});
> >                  });
> >         });
> > </script>

Reply via email to