<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ajax autocompletion for the impatient</title>
	<atom:link href="http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/</link>
	<description>Tim Roberts CakePHP, MySQL and jQuery Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:34:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Diego Calle</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-5696</link>
		<dc:creator>Diego Calle</dc:creator>
		<pubDate>Sun, 02 May 2010 03:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-5696</guid>
		<description>I was just trying your autocompletion demo and it works just fine, but how can I do that when somebody select an option the script fill a hidden input with another info of the same SQL query.

To be more clare, I need to search by name a database of customers but when I found the person by his name I need to load his identification in a hidden input.

Thanks for all</description>
		<content:encoded><![CDATA[<p>I was just trying your autocompletion demo and it works just fine, but how can I do that when somebody select an option the script fill a hidden input with another info of the same SQL query.</p>
<p>To be more clare, I need to search by name a database of customers but when I found the person by his name I need to load his identification in a hidden input.</p>
<p>Thanks for all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Barrasso</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-4168</link>
		<dc:creator>Thomas Barrasso</dc:creator>
		<pubDate>Sun, 14 Jun 2009 22:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-4168</guid>
		<description>Heya,

So I am working on something similar.
A piece of advice, for the PHP to this:

instead of writing all those str_replace, either do a for() loop for all latin Char(), or just make an array.

ie.

</description>
		<content:encoded><![CDATA[<p>Heya,</p>
<p>So I am working on something similar.<br />
A piece of advice, for the PHP to this:</p>
<p>instead of writing all those str_replace, either do a for() loop for all latin Char(), or just make an array.</p>
<p>ie.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leonardabol</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-4069</link>
		<dc:creator>leonardabol</dc:creator>
		<pubDate>Fri, 12 Jun 2009 11:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-4069</guid>
		<description>Cheap cialis is taken orally and helps men suffering from erectile dysfunction achieve and maintain an erection For cialis order usa fast delivery Usa. No prescription required -buy priaprism pills now.. Fast to get cialis pills online...  Find out more about erectile dysfunction at the great viagara herbal site 
___________________________
&lt;a href=&quot;http://rxclialised.sqweebs.com/tadafil/&quot; rel=&quot;nofollow&quot;&gt;Buy now   canada tadafil ...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Cheap cialis is taken orally and helps men suffering from erectile dysfunction achieve and maintain an erection For cialis order usa fast delivery Usa. No prescription required -buy priaprism pills now.. Fast to get cialis pills online&#8230;  Find out more about erectile dysfunction at the great viagara herbal site<br />
___________________________<br />
<a href="http://rxclialised.sqweebs.com/tadafil/" rel="nofollow">Buy now   canada tadafil &#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicholvif</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-4068</link>
		<dc:creator>nicholvif</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-4068</guid>
		<description>Tadalafil is taken orally and helps men suffering from erectile dysfunction achieve and maintain an erection For viagra generic soft tabs very fast delivery for you! Save your money -buy cialis pill  ... Easy to get cialis pills online.  Find out more about sexual activity at the great calis pfizer site.
___________________________
&lt;a href=&quot;http://gbviagraabuy.hoxt.me/levirta/generic-levirta-uk.html&quot; rel=&quot;nofollow&quot;&gt;canadian  generic levirta ukonline...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Tadalafil is taken orally and helps men suffering from erectile dysfunction achieve and maintain an erection For viagra generic soft tabs very fast delivery for you! Save your money -buy cialis pill  &#8230; Easy to get cialis pills online.  Find out more about sexual activity at the great calis pfizer site.<br />
___________________________<br />
<a href="http://gbviagraabuy.hoxt.me/levirta/generic-levirta-uk.html" rel="nofollow">canadian  generic levirta ukonline&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deenafal</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-4066</link>
		<dc:creator>deenafal</dc:creator>
		<pubDate>Fri, 12 Jun 2009 09:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-4066</guid>
		<description>Cheap levitra the prescription erectile dysfunction (ED) tablet clinically proven to both work fast (in as little as 30 minutes for some men) and work up to 36 hours For cialis kamagra fast delivery Europe! No prescription required-buy levitra tabs  .. Fast to get erectile dysfunction pills online.  Find out more about viagra at the official vigara online usa site...
___________________________
&lt;a href=&quot;http://vpxlrx.justfree.com/cials/&quot; rel=&quot;nofollow&quot;&gt;Go to order   dosing cials now!&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Cheap levitra the prescription erectile dysfunction (ED) tablet clinically proven to both work fast (in as little as 30 minutes for some men) and work up to 36 hours For cialis kamagra fast delivery Europe! No prescription required-buy levitra tabs  .. Fast to get erectile dysfunction pills online.  Find out more about viagra at the official vigara online usa site&#8230;<br />
___________________________<br />
<a href="http://vpxlrx.justfree.com/cials/" rel="nofollow">Go to order   dosing cials now!</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-3951</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Sun, 07 Jun 2009 23:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-3951</guid>
		<description>does this script re-query the database with each keystroke or simply complete off of the result data from one query? If it continually queries, you could run into serious memory issues.

Look forward to your reply</description>
		<content:encoded><![CDATA[<p>does this script re-query the database with each keystroke or simply complete off of the result data from one query? If it continually queries, you could run into serious memory issues.</p>
<p>Look forward to your reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guille</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-2799</link>
		<dc:creator>Guille</dc:creator>
		<pubDate>Tue, 05 May 2009 21:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-2799</guid>
		<description>Hi Tim. I write from Argentina.  I´m trying your script, and works fine, but I find a little trouble:  in your demo, I can select a suggestions with arrows key + enter, but in my installation I can´t, only allow to select using mouse.  Can you giveme a tip to find a solution? I´m using Linux CentOS 5.2 + Apache 2.2 + PHP 5.2 + Last Scriptaculous Library. Too Xampp 1.7 for Windows. Thanks very much in advance.</description>
		<content:encoded><![CDATA[<p>Hi Tim. I write from Argentina.  I´m trying your script, and works fine, but I find a little trouble:  in your demo, I can select a suggestions with arrows key + enter, but in my installation I can´t, only allow to select using mouse.  Can you giveme a tip to find a solution? I´m using Linux CentOS 5.2 + Apache 2.2 + PHP 5.2 + Last Scriptaculous Library. Too Xampp 1.7 for Windows. Thanks very much in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CHARIS</title>
		<link>http://www.wiseguysonly.com/2006/04/14/ajax-autocompletion-for-the-impatient/comment-page-1/#comment-940</link>
		<dc:creator>CHARIS</dc:creator>
		<pubDate>Fri, 27 Feb 2009 09:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=141#comment-940</guid>
		<description>I can&#039;t pass the id in the hidden field. I put the function 

function getSelectedId(text, li) {
$(&#039;customers_fax&#039;).value=li.id;
}


before my form, because if I put it after I take error because element getSelectedId is not yet set for the function Ajax.Autocompleter to call it.

But even I tried all the ways that I can think, I did not managed to get this work, to pass the id in a hidden input field.

My page code is :

function getSelectedId(text, li) {
$(&#039;customers_fax&#039;).value=li.id;
}



ÁíáæÞôçóç ÌÝëïõò :




&#160;&#160;&#160;&#160;&#160;
&#160;&#160;&#160;&#160;&#160;




new Ajax.Autocompleter(&quot;search&quot;,&quot;hint&quot;,&quot;server.php&quot;,{afterUpdateElement : getSelectedId});


And my server.php is :

$test_echo = $_POST[&#039;search&#039;];

$test_echo = str_replace(&quot;A&quot;, &quot;Á&quot;, $test_echo);
$test_echo = str_replace(&quot;B&quot;, &quot;Â&quot;, $test_echo);
$test_echo = str_replace(&quot;G&quot;, &quot;Ã&quot;, $test_echo);
$test_echo = str_replace(&quot;D&quot;, &quot;Ä&quot;, $test_echo);
$test_echo = str_replace(&quot;E&quot;, &quot;Å&quot;, $test_echo);
$test_echo = str_replace(&quot;Z&quot;, &quot;Æ&quot;, $test_echo);
$test_echo = str_replace(&quot;H&quot;, &quot;Ç&quot;, $test_echo);
$test_echo = str_replace(&quot;U&quot;, &quot;È&quot;, $test_echo);
$test_echo = str_replace(&quot;I&quot;, &quot;É&quot;, $test_echo);
$test_echo = str_replace(&quot;K&quot;, &quot;Ê&quot;, $test_echo);
$test_echo = str_replace(&quot;L&quot;, &quot;Ë&quot;, $test_echo);
$test_echo = str_replace(&quot;M&quot;, &quot;Ì&quot;, $test_echo);
$test_echo = str_replace(&quot;N&quot;, &quot;Í&quot;, $test_echo);
$test_echo = str_replace(&quot;J&quot;, &quot;Î&quot;, $test_echo);
$test_echo = str_replace(&quot;O&quot;, &quot;Ï&quot;, $test_echo);
$test_echo = str_replace(&quot;P&quot;, &quot;Ð&quot;, $test_echo);
$test_echo = str_replace(&quot;R&quot;, &quot;Ñ&quot;, $test_echo);
$test_echo = str_replace(&quot;S&quot;, &quot;Ó&quot;, $test_echo);
$test_echo = str_replace(&quot;T&quot;, &quot;Ô&quot;, $test_echo);
$test_echo = str_replace(&quot;Y&quot;, &quot;Õ&quot;, $test_echo);
$test_echo = str_replace(&quot;F&quot;, &quot;Ö&quot;, $test_echo);
$test_echo = str_replace(&quot;X&quot;, &quot;×&quot;, $test_echo);
$test_echo = str_replace(&quot;C&quot;, &quot;Ø&quot;, $test_echo);
$test_echo = str_replace(&quot;V&quot;, &quot;Ù&quot;, $test_echo);


$keywords = $test_echo;
$search_name   = &quot; where customers_lastname like &#039;%&quot; . $keywords . &quot;%&#039; or customers_fax = &#039;&quot; . $keywords . &quot;&#039;&quot;;
$search_name = $db-&gt;bindVars($search_name, &#039;:keywords:&#039;, $keywords, &#039;regexp&#039;);
$sql = &quot;SELECT customers_fax, customers_lastname, customers_firstname
        FROM   customers
        &quot; . $search_name . &quot;
       &quot;;
        
$rs = mysql_query($sql);

?&gt;





&lt;li id =&quot;&quot; title=&quot;&quot; class=&quot;lista_li&quot;&gt;

&lt;?php
echo $data[&#039;customers_lastname&#039;].&#039; &#039;.$data[&#039;customers_firstname&#039;].&#039;&#160;&#160;&#160;AM : &#039;.$data[&#039;customers_fax&#039;].&#039;&#039;;
?&gt;







________________

I had to search with LATIN characters, because there was a problem with GREEK characters. So when LATIN characters are posted, they are replaced with GREEK characters. And wehen someone wants to search records with LATIN characters in database, he can use lowercase because I replace only upercase characters.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t pass the id in the hidden field. I put the function </p>
<p>function getSelectedId(text, li) {<br />
$(&#8216;customers_fax&#8217;).value=li.id;<br />
}</p>
<p>before my form, because if I put it after I take error because element getSelectedId is not yet set for the function Ajax.Autocompleter to call it.</p>
<p>But even I tried all the ways that I can think, I did not managed to get this work, to pass the id in a hidden input field.</p>
<p>My page code is :</p>
<p>function getSelectedId(text, li) {<br />
$(&#8216;customers_fax&#8217;).value=li.id;<br />
}</p>
<p>ÁíáæÞôçóç ÌÝëïõò :</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>new Ajax.Autocompleter(&#8220;search&#8221;,&#8221;hint&#8221;,&#8221;server.php&#8221;,{afterUpdateElement : getSelectedId});</p>
<p>And my server.php is :</p>
<p>$test_echo = $_POST['search'];</p>
<p>$test_echo = str_replace(&#8220;A&#8221;, &#8220;Á&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;B&#8221;, &#8220;Â&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;G&#8221;, &#8220;Ã&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;D&#8221;, &#8220;Ä&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;E&#8221;, &#8220;Å&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;Z&#8221;, &#8220;Æ&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;H&#8221;, &#8220;Ç&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;U&#8221;, &#8220;È&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;I&#8221;, &#8220;É&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;K&#8221;, &#8220;Ê&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;L&#8221;, &#8220;Ë&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;M&#8221;, &#8220;Ì&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;N&#8221;, &#8220;Í&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;J&#8221;, &#8220;Î&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;O&#8221;, &#8220;Ï&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;P&#8221;, &#8220;Ð&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;R&#8221;, &#8220;Ñ&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;S&#8221;, &#8220;Ó&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;T&#8221;, &#8220;Ô&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;Y&#8221;, &#8220;Õ&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;F&#8221;, &#8220;Ö&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;X&#8221;, &#8220;×&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;C&#8221;, &#8220;Ø&#8221;, $test_echo);<br />
$test_echo = str_replace(&#8220;V&#8221;, &#8220;Ù&#8221;, $test_echo);</p>
<p>$keywords = $test_echo;<br />
$search_name   = &#8221; where customers_lastname like &#8216;%&#8221; . $keywords . &#8220;%&#8217; or customers_fax = &#8216;&#8221; . $keywords . &#8220;&#8216;&#8221;;<br />
$search_name = $db-&gt;bindVars($search_name, &#8216;:keywords:&#8217;, $keywords, &#8216;regexp&#8217;);<br />
$sql = &#8220;SELECT customers_fax, customers_lastname, customers_firstname<br />
        FROM   customers<br />
        &#8221; . $search_name . &#8221;<br />
       &#8220;;</p>
<p>$rs = mysql_query($sql);</p>
<p>?&gt;</p>
<p>&lt;li id =&#8221;" title=&#8221;" class=&#8221;lista_li&#8221;&gt;</p>
<p>&lt;?php<br />
echo $data['customers_lastname'].&#8217; &#8216;.$data['customers_firstname'].&#8217;&nbsp;&nbsp;&nbsp;AM : &#8216;.$data['customers_fax'].&#8221;;<br />
?&gt;</p>
<p>________________</p>
<p>I had to search with LATIN characters, because there was a problem with GREEK characters. So when LATIN characters are posted, they are replaced with GREEK characters. And wehen someone wants to search records with LATIN characters in database, he can use lowercase because I replace only upercase characters.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

