Kim,

>Hello,
>
>So now I'm trying to implement Jorn's fantastic
>autocomplete revision, and am encountering some
>problems.

Since you're in a hurry, try my original mod to see if it works for you:
http://www.pengoworks.com/workshop/jquery/autocomplete.htm

Joern's made a lot of changes and refactored most of the code. Joern's code
base is definitely going to be a huge improvement, but it is still in
development and there are known issues and it's not really ready for prime
time yet.

Anyway, I'm going to take a stab at what I think may be the issues below.

First, there's definitely a positioning issue in Firefox. The pop-ups are
appearing at the bottom of the document. Not sure what the issue is, but it
could be a CSS issue w/one of the parent object. By do any of the parent
items in the input boxes have relative positions? 

>Problem page:
>http://anime-planet.com/anirec/recommendation2.php?animeid=2
>
>Autocomplete initialization:
>
>$("#rec1").autocomplete(
>       "autocomplete_anirec.php",
>       {
>               minChars:3,
>               cacheLength:50,
>               max:50,
>               delay: 10
>                                                       }
>);
>
>(I admittedly am not sure what cacheLength does, but I
>tried increasing it)

The cacheLength controls how many items to cache. Each AJAX call is
cached--so that no more AJAX operations are needed.

>In "autocomplete_anirec.php", I am echoing: $title .
>"\n"  for each title.
>
>---------------------------
>
>Repro steps (for problem 1):
>1. In the first "select anime" box, type "end"
>(without quotes)
>
>2. CLICK (don't use tab or the enter key) "Blue
>Gender"
>
>Results: Notice that "Zone of the Enders: Dolores"
>shows up as the selected string.
>

For some reason, the revised code is having problems finding the correct
value that was selected in dropdown. Joern's code is heavily refactored here
and the problem isn't jumping out at me.

Like I said, try my code for the time being. From the looks of your example,
it'll do everything you need.

-Dan

Reply via email to