(posted from wrong list email - reposting)<div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; "><div>The issue is the lastValue value being updated ahead of when it should on every second keystroke. The iautocompleter code seems over complicated! I was able to replicate the issue with just iautocompleter.js (obviously no remote requests happening but I could see the lastValue being updated incorrectly on alternate keystrokes in the debugger) so it&#39;s not just the replacement update() function.</div>
<div><br></div><div>I have a hack - not a real fix - which requires changing iautocompleter.js and jifty_interface.js. It also has a slight improvement to remove the time where there used to be no drop down between a keystroke and receiving the ajax request (I moved the call to clear() into the success handler).</div>
<div><br></div><div>I&#39;ll email the diffs when I get home for posterity but I&#39;ll also plan to move to trunk and then I can fork the github project and apply the patch there.</div><div><br></div><div>Cheers,</div><div>
<br></div><div>Mark.</div></span><br><div class="gmail_quote">On Fri, Feb 5, 2010 at 4:14 AM, Jesse Vincent <span dir="ltr">&lt;<a href="mailto:jesse@bestpractical.com">jesse@bestpractical.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
<br>
On Tue  2.Feb&#39;10 at  9:20:32 +1100, Mark Aufflick wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; Please forgive a cross-post from IRC since noone seemed to be around yesterday<br>
&gt; to answer it:<br>
&gt;<br>
&gt; my autocompleted fields have an annoying property where every second character<br>
&gt; I type, the drop down will disappear even though it should match - type a<br>
&gt; further (matching) character and it appears again<br>
&gt;<br>
&gt; eg, imagine a field of country names, and I&#39;m typing Australia:<br>
&gt;<br>
&gt; AU (dropdown appears) S (dropdown disappears, and stays away no matter how long<br>
&gt; you wait) T (dropdown appears) R (disappears) A (appears) ... etc<br>
&gt;<br>
&gt; on a more minor issue, if you then backspace all the way to a blank box I get a<br>
&gt; visible, but tiny, square which is a completely empty drop down<br>
&gt;<br>
&gt; I&#39;ll dig into the jifty JS if required, but I thought I&#39;d see if anyone else<br>
&gt; solved this before I do. I assume the trunk is substantially different to<br>
&gt; CPAN...<br>
<br>
</div>Trunk is continuing to evolve, but it&#39;s only been about two months since<br>
the last CPAN release.<br>
<br>
I think the issue is that the menu is closing because it&#39;s<br>
invalidating the previous dropdown and going back to the server to get a<br>
new one... but I don&#39;t know why it&#39;s not coming back. I&#39;m not seeing the<br>
tiny box, but I am seeing the alternate-character issue.<br>
<br>
A patch would be hugely appreciated.<br>
<div class="im"><br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Mark.<br>
&gt;<br>
&gt; --<br>
&gt; Mark Aufflick<br>
&gt; contact info at <a href="http://pumptheory.com/about" target="_blank">http://pumptheory.com/about</a><br>
&gt;<br>
&gt; <a href="http://pumptheory.com" target="_blank">http://pumptheory.com</a><br>
&gt; iPhone and Enterprise software development<br>
<br>
</div>&gt; _______________________________________________<br>
&gt; jifty-devel mailing list<br>
&gt; <a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br>
&gt; <a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
<br>
_______________________________________________<br>
jifty-devel mailing list<br>
<a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br>
<a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Mark Aufflick<br> contact info at <a href="http://pumptheory.com/about">http://pumptheory.com/about</a><br><br> <a href="http://pumptheory.com">http://pumptheory.com</a><br>
 iPhone and Enterprise software development<br>
</div>