(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'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'll email the diffs when I get home for posterity but I'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"><<a href="mailto:jesse@bestpractical.com">jesse@bestpractical.com</a>></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'10 at 9:20:32 +1100, Mark Aufflick wrote:<br>
> Hi all,<br>
><br>
> Please forgive a cross-post from IRC since noone seemed to be around yesterday<br>
> to answer it:<br>
><br>
> my autocompleted fields have an annoying property where every second character<br>
> I type, the drop down will disappear even though it should match - type a<br>
> further (matching) character and it appears again<br>
><br>
> eg, imagine a field of country names, and I'm typing Australia:<br>
><br>
> AU (dropdown appears) S (dropdown disappears, and stays away no matter how long<br>
> you wait) T (dropdown appears) R (disappears) A (appears) ... etc<br>
><br>
> on a more minor issue, if you then backspace all the way to a blank box I get a<br>
> visible, but tiny, square which is a completely empty drop down<br>
><br>
> I'll dig into the jifty JS if required, but I thought I'd see if anyone else<br>
> solved this before I do. I assume the trunk is substantially different to<br>
> CPAN...<br>
<br>
</div>Trunk is continuing to evolve, but it'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's<br>
invalidating the previous dropdown and going back to the server to get a<br>
new one... but I don't know why it's not coming back. I'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>
><br>
> Cheers,<br>
><br>
> Mark.<br>
><br>
> --<br>
> Mark Aufflick<br>
> contact info at <a href="http://pumptheory.com/about" target="_blank">http://pumptheory.com/about</a><br>
><br>
> <a href="http://pumptheory.com" target="_blank">http://pumptheory.com</a><br>
> iPhone and Enterprise software development<br>
<br>
</div>> _______________________________________________<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>
<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>