[jQuery] Interface: Autocomplete fixes (attn: Stefan)

[jQuery] Interface: Autocomplete fixes (attn: Stefan)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=552050910-29092006><FONT face=Arial
color=#0000ff size=2>Have you thought about the possibility of allowing multiple
suggestions using one textfield? It would be a great functionality, I
think.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=552050910-29092006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=552050910-29092006><FONT face=Arial
color=#0000ff size=2>The idea is that you will be able to specify a "separator
char", like comma or space, and anything written after this char launches a new
request of autocompletion, using only the values after the last "separator
char". Something similar to what happens at Gmail when you are filling the
emails (separateds by comma), or at digg when you are writting the URL tags
(separated by spaces).</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV
style="FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: arial, helvetica, sans-serif; TEXT-DECORATION: none">--<BR><SPAN
style="FONT-SIZE: 13px">Albert Garcia</SPAN><BR><STRONG>OboLog</STRONG> <SPAN
style="FONT-SIZE: 10px">ยป tus pensamientos en red</SPAN><BR><A
href="http://www.obolog.com/">http://www.obolog.com</A><BR><A
href="http://www.obolog.com/"><IMG src="http://www.obolog.com/img/logo_ico.gif"
align=absMiddle border=0 nosend="1"></A><BR>___________________________<BR><SPAN
style="FONT-SIZE: 10px">Mi blog en <A
href="http://www.obolog.com/">http://obokaman.obolog.com</A></SPAN> </DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=es dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com] <B>En nombre de </B>Stefan
Petre<BR><B>Enviado el:</B> viernes, 29 de septiembre de 2006
12:04<BR><B>Para:</B> jQuery Discussion.<BR><B>Asunto:</B> Re: [jQuery]
Interface: Autocomplete fixes (attn: Stefan)<BR></FONT><BR></DIV>
<DIV></DIV>When I imported the database i used a wrong version for
collation<BR><BR>
<DIV><SPAN class=gmail_quote>2006/9/29, Dan Atkinson <<A
href="mailto:dandementia@googlemail.com">dandementia@googlemail.com</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Although
only relevant to the example, searching for 'A coru' provides
an<BR>interesting, if cold location for Spain!<BR><BR>aedmonds
wrote:<BR>><BR>> If you've had some difficulty using the Autocompleter
included in the <BR>> wonderful interface package, I found some fixes for
bugs I was<BR>> experiencing. These bugs were happening when the input
field was within a<BR>> form and you arrow down to the selection and hit
enter. The callback fired <BR>> but after the form had been submitted :(.
These couple of steps will help<BR>> fix that.<BR>><BR>> First,
there are two "protect" methods in the iautocompleter.js code.<BR>>
Delete the "protect" method located on line 353. It is incomplete and will
<BR>> throw errors if the first "protect" method on line 210 is removed
instead<BR>> of this method.<BR>><BR>> Second, on line 425 (or 411
if you deleted the second "protect" method),<BR>> where the "protect"
method is bound to the keypress... <BR>><BR>> "wait a sec... that's no
'protect'. All I see is<BR>> '.keypress(jQuery.iAuto.potect)'!" you might
say to yourself. If you did,<BR>> congrats, you found the second error.
If you didn't say that, don't worry. <BR>> Just add the "r" to "potect"
and the Autocompleter works like a dream.<BR>><BR>> Hopefully this is
updated soon (I know Stefan made an update a couple of<BR>> days ago but
nothing changed for the Autocompleter). <BR>><BR>> If you have no idea
what the "interface" package is, you can go to<BR>> <A
href="http://interface.eyecon.ro/">http://interface.eyecon.ro/</A> <A
href="http://interface.eyecon.ro/">http://interface.eyecon.ro/
</A>.<BR>><BR>> As always, thanks John for jQuery, and thanks Stefan
for interface.<BR>><BR>> -Aaron<BR>><BR><BR>--<BR>View this message
in context: <A
href="http://www.nabble.com/Interface%3A-Autocomplete-fixes-%28attn%3A-Stefan%29-tf2354128.html#a6561420">http://www.nabble.com/Interface%3A-Autocomplete-fixes-%28attn%3A-Stefan%29-tf2354128.html#a6561420</A><BR>Sent
from the JQuery mailing list archive at <A
href="http://Nabble.com">Nabble.com</A>.<BR><BR><BR>_______________________________________________
<BR>jQuery mailing list<BR><A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR><A
href="http://jquery.com/discuss/">http://jquery.com/discuss/</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/