<?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: Extended Autocomplete Helper</title>
	<atom:link href="http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/feed/" rel="self" type="application/rss+xml" />
	<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/</link>
	<description>Technical weblog for articles and titorials related to web development.</description>
	<lastBuildDate>Sun, 14 Mar 2010 10:20:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jerome</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-879</link>
		<dc:creator>Jerome</dc:creator>
		<pubDate>Fri, 28 Aug 2009 19:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-879</guid>
		<description>... Does not seem to work with labels containing extended characters (àéèü .etc...).
When I access the controller that generates the list it shows good in the browser, including extended characters, but when this same list displays in the autocompleter, extended characters are replaced by wierd characters ... I am stuk for 2 days on this, a little help would be greate :)</description>
		<content:encoded><![CDATA[<p>&#8230; Does not seem to work with labels containing extended characters (àéèü .etc&#8230;).<br />
When I access the controller that generates the list it shows good in the browser, including extended characters, but when this same list displays in the autocompleter, extended characters are replaced by wierd characters &#8230; I am stuk for 2 days on this, a little help would be greate <img src='http://nik.chankov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-863</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sun, 02 Aug 2009 10:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-863</guid>
		<description>Hi Nik, I would just like to say a big thank you for extending the functionality of the Autocomplete helper with your StrictAutocomplete helper.</description>
		<content:encoded><![CDATA[<p>Hi Nik, I would just like to say a big thank you for extending the functionality of the Autocomplete helper with your StrictAutocomplete helper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik Chankov</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-718</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Thu, 09 Apr 2009 13:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-718</guid>
		<description>Hi Joshua,

I&#039;ve tried your suggestion on the example page in my blog, but both on IE6 and 7 there is no such problem. It&#039;s working as expected.</description>
		<content:encoded><![CDATA[<p>Hi Joshua,</p>
<p>I&#8217;ve tried your suggestion on the example page in my blog, but both on IE6 and 7 there is no such problem. It&#8217;s working as expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-717</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Thu, 09 Apr 2009 11:26:25 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-717</guid>
		<description>Nik, sorry to bug you with another question, but maybe you have a bright idea on this one: My autocompleter (your helper displayed above) works perfectly fine in Firefox/Chrome. But IE (6-8) is troubling me: The autocomplete list does not appear immediately after entering text. Instead, it only appears if I enter some text, wait a second and afterwards modify it in any way, e.g. remove a letter. 

Just for demostration purposes:
- I enter &quot;testquery&quot; (fairly quickly)
- No reaction
- I delete the &quot;y&quot;
- Autocomplete list appears (with the correct entries etc.)

Do you have any idea what might be causing this strange behavior?</description>
		<content:encoded><![CDATA[<p>Nik, sorry to bug you with another question, but maybe you have a bright idea on this one: My autocompleter (your helper displayed above) works perfectly fine in Firefox/Chrome. But IE (6-8) is troubling me: The autocomplete list does not appear immediately after entering text. Instead, it only appears if I enter some text, wait a second and afterwards modify it in any way, e.g. remove a letter. </p>
<p>Just for demostration purposes:<br />
- I enter &#8220;testquery&#8221; (fairly quickly)<br />
- No reaction<br />
- I delete the &#8220;y&#8221;<br />
- Autocomplete list appears (with the correct entries etc.)</p>
<p>Do you have any idea what might be causing this strange behavior?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-713</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Mon, 06 Apr 2009 18:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-713</guid>
		<description>Nik, thank you very much for your immediate response. With your help, I was able to figure out how to use the helper. Anyways, I will have a look at the jQuery-Version as well - although I hesitate to add another JS library to my project...</description>
		<content:encoded><![CDATA[<p>Nik, thank you very much for your immediate response. With your help, I was able to figure out how to use the helper. Anyways, I will have a look at the jQuery-Version as well &#8211; although I hesitate to add another JS library to my project&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik Chankov</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-712</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Mon, 06 Apr 2009 16:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-712</guid>
		<description>Joshua, I&#039;ve restored the demo, it was because of hosting change and the db config wasn&#039;t changed. Now it&#039;s ok, but I would recommend to start using jQuery instead my helper. 

Probably in the future I will create a demo how to use jQuery, but it&#039;s still in &quot;my head&quot; stage. :) I would recommend this jQuery plugin http://www.pengoworks.com/workshop/jquery/autocomplete.htm</description>
		<content:encoded><![CDATA[<p>Joshua, I&#8217;ve restored the demo, it was because of hosting change and the db config wasn&#8217;t changed. Now it&#8217;s ok, but I would recommend to start using jQuery instead my helper. </p>
<p>Probably in the future I will create a demo how to use jQuery, but it&#8217;s still in &#8220;my head&#8221; stage. <img src='http://nik.chankov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I would recommend this jQuery plugin <a href="http://www.pengoworks.com/workshop/jquery/autocomplete.htm" rel="nofollow">http://www.pengoworks.com/workshop/jquery/autocomplete.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-711</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Mon, 06 Apr 2009 15:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-711</guid>
		<description>Hi Nik, thanks a lot for your efforts.
Unfortunately, your online demo site seems to have crashed - would it be possible for you to get it back working? I would love to include your helper into my project, but unfortunately I am somewhat stuck right now.
Thank you
Joshua</description>
		<content:encoded><![CDATA[<p>Hi Nik, thanks a lot for your efforts.<br />
Unfortunately, your online demo site seems to have crashed &#8211; would it be possible for you to get it back working? I would love to include your helper into my project, but unfortunately I am somewhat stuck right now.<br />
Thank you<br />
Joshua</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-621</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Wed, 18 Feb 2009 20:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-621</guid>
		<description>Thanks for the tips, it works like a charm now!</description>
		<content:encoded><![CDATA[<p>Thanks for the tips, it works like a charm now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nik Chankov</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-619</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Wed, 18 Feb 2009 19:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-619</guid>
		<description>@Joey if you using FireFox you can use Firebug to track what you sending with the Ajax request. With the same tool you can see what you getting from the server as well. Check the console tab of Firebug.

I can see also that your where condition is wrong instead of

&lt;code lang=&quot;php&quot;&gt;$this-&gt;Model-&gt;findAll(array(”name like &#039;%SOMETHING&#039;”))&lt;/code&gt;

it should be

&lt;code lang=&quot;php&quot;&gt;$this-&gt;Model-&gt;findAll(array(”name like &#039;SOMETHING%&#039;”))&lt;/code&gt;

It the first case you are searching end of the string, instead of beginning. :)

About the second question (it may be connected to the first one too) the debug is stopped from /yourapp/app/config/core.php there is a row (the first one) which is: Configure::write(&#039;debug&#039;, 2); change the value to 1 or 0.

The reason why I think it&#039;s connected to the first question is because although I am not using prototype in my current projects, I remember that autocomplete expect clear ul li tags, without any other stuff. So it&#039;s possible when you downgrade your debug level this thing could start working :&gt;</description>
		<content:encoded><![CDATA[<p>@Joey if you using FireFox you can use Firebug to track what you sending with the Ajax request. With the same tool you can see what you getting from the server as well. Check the console tab of Firebug.</p>
<p>I can see also that your where condition is wrong instead of</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">findAll</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>”name like <span style="color: #0000ff;">'%SOMETHING'</span>”<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></div>
<p>it should be</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">findAll</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>”name like <span style="color: #0000ff;">'SOMETHING%'</span>”<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></div>
<p>It the first case you are searching end of the string, instead of beginning. <img src='http://nik.chankov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>About the second question (it may be connected to the first one too) the debug is stopped from /yourapp/app/config/core.php there is a row (the first one) which is: Configure::write(&#8216;debug&#8217;, 2); change the value to 1 or 0.</p>
<p>The reason why I think it&#8217;s connected to the first question is because although I am not using prototype in my current projects, I remember that autocomplete expect clear ul li tags, without any other stuff. So it&#8217;s possible when you downgrade your debug level this thing could start working :></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/comment-page-1/#comment-618</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Wed, 18 Feb 2009 14:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://nik.chankov.net/2007/09/03/extended-autocomplete-helper/#comment-618</guid>
		<description>Thanks for your work Nik.

I have 2 questions:-

----------------------------------------------------------
A) In the server-side snipet you provide, I can read:-

$countries = $this-&gt;Country-&gt;findAll(array(&quot;name like &#039;&quot;.$this-&gt;data[0][&#039;autocomplete_auto&#039;].&quot;%&#039;&quot;));

I don&#039;t understand where &#039;autocomplete_auto&#039; comes from ($this-&gt;data[0][&#039;autocomplete_auto&#039;]).

I have an issue that the autocomplete does not trigger - if I access the list directly through the action in the browser, which comes to findAll(array(&quot;name like &#039;%&#039;&quot;)) basically, I get the list of countries, but when Ajax code accesses it ; which comes to findAll(array(&quot;name like &#039;%SOMETHING&#039;&quot;))the list of choices does not appear - I suspect somehow the like clause is broken but I don&#039;t know how to debug this - understanding how what the user entered ends-up in $this-&gt;data[0][&#039;autocomplete_auto&#039;] would be a great help.

----------------------------------------------------------
B) When I access a CakePHP action, the returned view always contains the SQL statistics (debug mode 1) - is there a way to remove this from the output, I suspect this might be an extra issue for the autocomplete to work OK.

Many thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for your work Nik.</p>
<p>I have 2 questions:-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
A) In the server-side snipet you provide, I can read:-</p>
<p>$countries = $this-&gt;Country-&gt;findAll(array(&#8220;name like &#8216;&#8221;.$this-&gt;data[0]['autocomplete_auto'].&#8221;%&#8217;&#8221;));</p>
<p>I don&#8217;t understand where &#8216;autocomplete_auto&#8217; comes from ($this-&gt;data[0]['autocomplete_auto']).</p>
<p>I have an issue that the autocomplete does not trigger &#8211; if I access the list directly through the action in the browser, which comes to findAll(array(&#8220;name like &#8216;%&#8217;&#8221;)) basically, I get the list of countries, but when Ajax code accesses it ; which comes to findAll(array(&#8220;name like &#8216;%SOMETHING&#8217;&#8221;))the list of choices does not appear &#8211; I suspect somehow the like clause is broken but I don&#8217;t know how to debug this &#8211; understanding how what the user entered ends-up in $this-&gt;data[0]['autocomplete_auto'] would be a great help.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
B) When I access a CakePHP action, the returned view always contains the SQL statistics (debug mode 1) &#8211; is there a way to remove this from the output, I suspect this might be an extra issue for the autocomplete to work OK.</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
