Hello, So now I'm trying to implement Jorn's fantastic autocomplete revision, and am encountering some problems.
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) 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. ------------------------ Repro steps (for problem 2, probably related to problem 1): 1. Refresh page 2. In the first "select anime" box, type "end" (without quotes) 3. CLICK (don't use tab or the enter key) "Zone of the Enders: Idolo" (the last option in the dropdown -- you'll need to scroll) Results: Notice that nothing shows up. This happens for other entries as well such as "Hakkenden, The". ---------------------------- Repro steps (for problem 3) 1. Refresh page 2. In the first "select anime" box, type "end" (without quotes) 3. Using the up/down keys (NOT the mouse click), move down to "Hakkenden, The" and press Enter. 4. DO NOT CHANGE FOCUS by clicking anywhere. With the cursor still in the first "select anime" box, use the backspace key to erase "Hakkenden, The" 5. Type "end" (without quotes) Results: Nothing happens. The only way to get the autocomplete to show up again is to change focus by clicking in another box and then clicking back in the previous box. This problem happens intermittently while doing a lot of combinations of things, but this is just one that happens every time. ------------------ Any thoughts from Jorn or others? I'm wondering if the internal numbering of the dropdown items is messed up (or I haven't set them correctly via a plugin option?) so when you click with the mouse, it's not picking up the right thing? For problem 3, maybe a binding issue? Was hoping to get this feature up today so hopefully the answer isn't too hard. :) thanks, -kim __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com