<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Auto-Complete Field with jQuery, JSON &#038; PHP</title>
	<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/</link>
	<description>Throwing code to the wind</description>
	<pubDate>Sat, 13 Mar 2010 00:15:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-55</link>
		<author>Frank</author>
		<pubDate>Sat, 26 May 2007 09:38:00 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-55</guid>
					<description>For php4 users (if you're still bound to) you can use http://mike.teczno.com/JSON/ to encode to JSON.

// return the array as json with PHP 4 and Services_JSON
require 'JSON.php';
$json = new Services_JSON();
echo  $json-&#62;encode($results);</description>
		<content:encoded><![CDATA[<p>For php4 users (if you&#8217;re still bound to) you can use <a href="http://mike.teczno.com/JSON/" rel="nofollow">http://mike.teczno.com/JSON/</a> to encode to JSON.</p>
<p>// return the array as json with PHP 4 and Services_JSON<br />
require &#8216;JSON.php&#8217;;<br />
$json = new Services_JSON();<br />
echo  $json-&gt;encode($results);</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-58</link>
		<author>Frank</author>
		<pubDate>Sat, 26 May 2007 11:27:00 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-58</guid>
					<description>What's a little pitty is, that mozilla tends to remember what has been already entered in that field. This is great in general but with your own autocomplete it is not because this is displayed above the autocomplete list. This can be made with the autocomplete attribute setting to off. Maybe it makes sense to put this into the .js as well?

This is the code that did the job for me (tested in firefox 2.x) in autocomplete.js inserted at line #40 in function setAutoComplete:

	// remove browsers autocomplete
	acSearchField.attr("autocomplete","off");

more info: http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html</description>
		<content:encoded><![CDATA[<p>What&#8217;s a little pitty is, that mozilla tends to remember what has been already entered in that field. This is great in general but with your own autocomplete it is not because this is displayed above the autocomplete list. This can be made with the autocomplete attribute setting to off. Maybe it makes sense to put this into the .js as well?</p>
<p>This is the code that did the job for me (tested in firefox 2.x) in autocomplete.js inserted at line #40 in function setAutoComplete:</p>
<p>	// remove browsers autocomplete<br />
	acSearchField.attr(&#8221;autocomplete&#8221;,&#8221;off&#8221;);</p>
<p>more info: <a href="http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html" rel="nofollow">http://chrisholland.blogspot.com/2004/11/banks-protect-privacy-disable.html</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-59</link>
		<author>Frank</author>
		<pubDate>Sat, 26 May 2007 12:10:33 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-59</guid>
					<description>Another comment: Using the PHP4 JSON.php lib is a bit problematic when it comes to unicode. For some german umlauts the code has got bugs resulting in problems for the autocomplete to properly work. It is strongly suggested in such cases to migrate to php5 as with everything unicode related.</description>
		<content:encoded><![CDATA[<p>Another comment: Using the PHP4 JSON.php lib is a bit problematic when it comes to unicode. For some german umlauts the code has got bugs resulting in problems for the autocomplete to properly work. It is strongly suggested in such cases to migrate to php5 as with everything unicode related.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-61</link>
		<author>Frank</author>
		<pubDate>Sat, 26 May 2007 12:38:32 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-61</guid>
					<description>Well I don't know what changed exactly (this is a joke, what changed is PHP to version 5.2.2), but calling the html (not any php) file gives a long list of javascript warnings already in jquery. my favorite ones are:

clearAutoComplete is not defined

or

Warnung: variable a hides argument

or

Warnung: variable i hides argument


I dunno what is going wrong here I'll restart my system now.</description>
		<content:encoded><![CDATA[<p>Well I don&#8217;t know what changed exactly (this is a joke, what changed is PHP to version 5.2.2), but calling the html (not any php) file gives a long list of javascript warnings already in jquery. my favorite ones are:</p>
<p>clearAutoComplete is not defined</p>
<p>or</p>
<p>Warnung: variable a hides argument</p>
<p>or</p>
<p>Warnung: variable i hides argument</p>
<p>I dunno what is going wrong here I&#8217;ll restart my system now.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-62</link>
		<author>Frank</author>
		<pubDate>Sat, 26 May 2007 13:10:40 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-62</guid>
					<description>Finally I rebuild all and even just opening the unzipped files directly from disc in firefox throws JS warnings. Can anyone confirm this?</description>
		<content:encoded><![CDATA[<p>Finally I rebuild all and even just opening the unzipped files directly from disc in firefox throws JS warnings. Can anyone confirm this?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-63</link>
		<author>fromvega</author>
		<pubDate>Sat, 26 May 2007 14:13:18 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-63</guid>
					<description>Hey Frank, disabling the browser auto complete is a good tip. Thank you! I'll address this issue in the next version. I'm planning to transform it in a jQuery plugin as soon I have a little more time.

Maybe your problem is that you are returning invalid data! Since the script uses jQuery $.getJSON function you should only return JSON.</description>
		<content:encoded><![CDATA[<p>Hey Frank, disabling the browser auto complete is a good tip. Thank you! I&#8217;ll address this issue in the next version. I&#8217;m planning to transform it in a jQuery plugin as soon I have a little more time.</p>
<p>Maybe your problem is that you are returning invalid data! Since the script uses jQuery $.getJSON function you should only return JSON.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-66</link>
		<author>Frank</author>
		<pubDate>Sun, 27 May 2007 14:48:43 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-66</guid>
					<description>Hi fromvega! Yup that was my mistake, there was no proper JSON returned. If you're after turning this into a jQuery Plugin (good idea!) keep in mind that it should work on multiple inputs on the same page. I could not figure out how to do that with your autocompete.</description>
		<content:encoded><![CDATA[<p>Hi fromvega! Yup that was my mistake, there was no proper JSON returned. If you&#8217;re after turning this into a jQuery Plugin (good idea!) keep in mind that it should work on multiple inputs on the same page. I could not figure out how to do that with your autocompete.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-69</link>
		<author>fromvega</author>
		<pubDate>Sun, 27 May 2007 16:48:29 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-69</guid>
					<description>I'm glad it worked for you. And yes, the plugin will work on multiple inputs. I coded the current script mainly to study jQuery and its Ajax functions. To have multiple inputs with the current script you need to duplicate the code and rename the global variables for each input, like I described here in the &lt;a href="http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/" rel="nofollow"&gt;Auto-Complete Field with jQuery - Code Explained&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad it worked for you. And yes, the plugin will work on multiple inputs. I coded the current script mainly to study jQuery and its Ajax functions. To have multiple inputs with the current script you need to duplicate the code and rename the global variables for each input, like I described here in the <a href="http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/" rel="nofollow">Auto-Complete Field with jQuery - Code Explained</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-75</link>
		<author>Frank</author>
		<pubDate>Mon, 28 May 2007 08:15:29 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-75</guid>
					<description>Okay, well, I see. Maybe it's better to support an already existing project? I found 

http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

which is an jQuery Autocomplete Plugin and it works very nice even without duplicating the sourcecode (which is not an option in my opinion). It already has some more nice options you should defenetly take a look there anyway even if you wanna start a plugin on your own.</description>
		<content:encoded><![CDATA[<p>Okay, well, I see. Maybe it&#8217;s better to support an already existing project? I found </p>
<p><a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" rel="nofollow">http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/</a></p>
<p>which is an jQuery Autocomplete Plugin and it works very nice even without duplicating the sourcecode (which is not an option in my opinion). It already has some more nice options you should defenetly take a look there anyway even if you wanna start a plugin on your own.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-77</link>
		<author>fromvega</author>
		<pubDate>Mon, 28 May 2007 17:28:16 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-77</guid>
					<description>Learning is what lead me to write these codes. I'm pretty sure there are a lot of similar scripts around the Internet. The one you linked is an example of a very good one, but I'll keep writing my own code as it's a way to improve my skills and help others detailing how they work.

Plug-ins tend to embed code to give freedom to the user, allowing multiple configurations for different usages. My code tend to fulfill my own needs and most of the times they won't have a lot of configuration. Sometimes it can be better if your needs are similar to mine, reducing the code and making it simpler.</description>
		<content:encoded><![CDATA[<p>Learning is what lead me to write these codes. I&#8217;m pretty sure there are a lot of similar scripts around the Internet. The one you linked is an example of a very good one, but I&#8217;ll keep writing my own code as it&#8217;s a way to improve my skills and help others detailing how they work.</p>
<p>Plug-ins tend to embed code to give freedom to the user, allowing multiple configurations for different usages. My code tend to fulfill my own needs and most of the times they won&#8217;t have a lot of configuration. Sometimes it can be better if your needs are similar to mine, reducing the code and making it simpler.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jozef</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-769</link>
		<author>Jozef</author>
		<pubDate>Wed, 31 Oct 2007 17:07:00 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-769</guid>
					<description>Hello Frank,
-I'm obviously not a programmer- So I am kind of embarrassed to ask.
What/how do I have to change to use autocompleter like a link (html link to a folder)?
Red - click  - go to link- domainname/red/ 
Blue - click - go to link- domainname/blue/ 
For data source I can use XML or put the data inside the page.
(how is the data source format should be)
I wouldn't mine paying for your help.
Thanks
jfk</description>
		<content:encoded><![CDATA[<p>Hello Frank,<br />
-I&#8217;m obviously not a programmer- So I am kind of embarrassed to ask.<br />
What/how do I have to change to use autocompleter like a link (html link to a folder)?<br />
Red - click  - go to link- domainname/red/<br />
Blue - click - go to link- domainname/blue/<br />
For data source I can use XML or put the data inside the page.<br />
(how is the data source format should be)<br />
I wouldn&#8217;t mine paying for your help.<br />
Thanks<br />
jfk</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-775</link>
		<author>fromvega</author>
		<pubDate>Mon, 05 Nov 2007 21:00:00 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-775</guid>
					<description>Hello Jozef,

The code responsible for populating the list is:

&lt;code&gt;newData += '&#60;div class=&#34;unselected&#34;&#62;' + json[i] + '&#60;/div&#62;';&lt;/code&gt;

So you would need to add a link tag, like this for instance:

&lt;code&gt;newData += '&#60;div class=&#34;unselected&#34;&#62; &#60;a href=&#34;address&#34;&#62;' + json[i] + '&#60;/a&#62;&#60;/div&#62;';&lt;/code&gt;

That's way it will be clickable. For the red, blue thing your PHP script will probably need to send more information to the JavaScript code so then you can decide watch address to link.

I hope you could understand.

Bye.</description>
		<content:encoded><![CDATA[<p>Hello Jozef,</p>
<p>The code responsible for populating the list is:</p>
<p><code>newData += '&lt;div class=&quot;unselected&quot;&gt;' + json[i] + '&lt;/div&gt;';</code></p>
<p>So you would need to add a link tag, like this for instance:</p>
<p><code>newData += '&lt;div class=&quot;unselected&quot;&gt; &lt;a href=&quot;address&quot;&gt;' + json[i] + '&lt;/a&gt;&lt;/div&gt;';</code></p>
<p>That&#8217;s way it will be clickable. For the red, blue thing your PHP script will probably need to send more information to the JavaScript code so then you can decide watch address to link.</p>
<p>I hope you could understand.</p>
<p>Bye.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Thailand Real Estate</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-801</link>
		<author>Thailand Real Estate</author>
		<pubDate>Sun, 30 Dec 2007 13:32:55 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-801</guid>
					<description>Sorry where can i find dimensions.js and autocomplete.js file ?</description>
		<content:encoded><![CDATA[<p>Sorry where can i find dimensions.js and autocomplete.js file ?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-802</link>
		<author>fromvega</author>
		<pubDate>Sun, 30 Dec 2007 19:17:34 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-802</guid>
					<description>Hi Thailand Real Estate, the files are listed at the end of the post, just before the comments! To get all the needed files, use this link: http://fromvega.com/code/autocomplete/autocomplete.zip</description>
		<content:encoded><![CDATA[<p>Hi Thailand Real Estate, the files are listed at the end of the post, just before the comments! To get all the needed files, use this link: <a href="http://fromvega.com/code/autocomplete/autocomplete.zip" rel="nofollow">http://fromvega.com/code/autocomplete/autocomplete.zip</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: kpli</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-805</link>
		<author>kpli</author>
		<pubDate>Mon, 31 Dec 2007 05:01:50 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-805</guid>
					<description>Thanks for the lovely post, i've read it with interest and had bookmarked this blog for future reference..keep em coming bro, and i wish you A Happy New Year !!</description>
		<content:encoded><![CDATA[<p>Thanks for the lovely post, i&#8217;ve read it with interest and had bookmarked this blog for future reference..keep em coming bro, and i wish you A Happy New Year !!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: kpli</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-811</link>
		<author>kpli</author>
		<pubDate>Fri, 18 Jan 2008 10:58:33 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-811</guid>
					<description>Hi..just stopping by to say a Happy New Year...interesting post there, and i've bookmarked this blog too...keep up the good job ;)</description>
		<content:encoded><![CDATA[<p>Hi..just stopping by to say a Happy New Year&#8230;interesting post there, and i&#8217;ve bookmarked this blog too&#8230;keep up the good job <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ramon</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-822</link>
		<author>ramon</author>
		<pubDate>Wed, 13 Feb 2008 21:05:15 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-822</guid>
					<description>i just made a simple autcomplete jus like the one in the example i took it for inspiration and made some adjustments http://webs2.x1fmradio.com</description>
		<content:encoded><![CDATA[<p>i just made a simple autcomplete jus like the one in the example i took it for inspiration and made some adjustments <a href="http://webs2.x1fmradio.com" rel="nofollow">http://webs2.x1fmradio.com</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Panzer</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-863</link>
		<author>Panzer</author>
		<pubDate>Sun, 27 Apr 2008 00:09:40 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-863</guid>
					<description>Looks interesting, i might start using this on new websites i develop.</description>
		<content:encoded><![CDATA[<p>Looks interesting, i might start using this on new websites i develop.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: wissem</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-864</link>
		<author>wissem</author>
		<pubDate>Wed, 30 Apr 2008 13:45:40 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-864</guid>
					<description>Greet work, thx!</description>
		<content:encoded><![CDATA[<p>Greet work, thx!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: rehman</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-866</link>
		<author>rehman</author>
		<pubDate>Mon, 05 May 2008 11:54:20 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-866</guid>
					<description>Hi,I've a problem with your code:
When I put your zipped folder's autocmplete.html file run on any browser it is not working with an javascript error.
If I put their in the
"start"
 $(function(){
	    setAutoComplete("searchField", "results", "autocomplete.php?part=");
	});
"end"
instead of
 setAutoComplete("searchField", "results", "autocomplete.php?part=");
setAutoComplete("searchField", "results", "http://fromvega.com/code/autocomplete/autocomplete.php?part=");
it works.
In Short Your zipped code is not working But Online code work Smoothly.
So plz make your code perfect .</description>
		<content:encoded><![CDATA[<p>Hi,I&#8217;ve a problem with your code:<br />
When I put your zipped folder&#8217;s autocmplete.html file run on any browser it is not working with an javascript error.<br />
If I put their in the<br />
&#8220;start&#8221;<br />
 $(function(){<br />
	    setAutoComplete(&#8221;searchField&#8221;, &#8220;results&#8221;, &#8220;autocomplete.php?part=&#8221;);<br />
	});<br />
&#8220;end&#8221;<br />
instead of<br />
 setAutoComplete(&#8221;searchField&#8221;, &#8220;results&#8221;, &#8220;autocomplete.php?part=&#8221;);<br />
setAutoComplete(&#8221;searchField&#8221;, &#8220;results&#8221;, &#8220;http://fromvega.com/code/autocomplete/autocomplete.php?part=&#8221;);<br />
it works.<br />
In Short Your zipped code is not working But Online code work Smoothly.<br />
So plz make your code perfect .</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: computerzworld</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-879</link>
		<author>computerzworld</author>
		<pubDate>Wed, 21 May 2008 04:35:55 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-879</guid>
					<description>I have two fields that are used for autocomplete. I have used your script which runs perfect for one field but how can I use it for two fields? I have tried to modify it but I wasn't able to modify it.  Please help me. Thank you.</description>
		<content:encoded><![CDATA[<p>I have two fields that are used for autocomplete. I have used your script which runs perfect for one field but how can I use it for two fields? I have tried to modify it but I wasn&#8217;t able to modify it.  Please help me. Thank you.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: felicia</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-883</link>
		<author>felicia</author>
		<pubDate>Sun, 08 Jun 2008 04:27:44 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-883</guid>
					<description>Thanks! :) Works great!!</description>
		<content:encoded><![CDATA[<p>Thanks! <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Works great!!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: WoL</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-889</link>
		<author>WoL</author>
		<pubDate>Thu, 26 Jun 2008 09:07:27 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-889</guid>
					<description>Im having the same problem as computerzworld, i cant get it to work with multiple search fields :(

Can anyone help?</description>
		<content:encoded><![CDATA[<p>Im having the same problem as computerzworld, i cant get it to work with multiple search fields <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Can anyone help?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-890</link>
		<author>fromvega</author>
		<pubDate>Thu, 26 Jun 2008 21:20:15 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-890</guid>
					<description>Hi computerzworld, hi WoL. Like I said in another comment from the other post (http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/), this example was not designed to be used efficiently with more than one field. Although, if you still wanna use it you will need to duplicate the code and rename the global variables and functions for each field.</description>
		<content:encoded><![CDATA[<p>Hi computerzworld, hi WoL. Like I said in another comment from the other post (http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/), this example was not designed to be used efficiently with more than one field. Although, if you still wanna use it you will need to duplicate the code and rename the global variables and functions for each field.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: FMS GROUP</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-921</link>
		<author>FMS GROUP</author>
		<pubDate>Mon, 28 Jul 2008 21:26:52 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-921</guid>
					<description>Thanks... `;)</description>
		<content:encoded><![CDATA[<p>Thanks&#8230; `;)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Myrtle Beach Real Estate</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-922</link>
		<author>Myrtle Beach Real Estate</author>
		<pubDate>Tue, 29 Jul 2008 20:18:17 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-922</guid>
					<description>JQuery is awesome...</description>
		<content:encoded><![CDATA[<p>JQuery is awesome&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Marcum</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-941</link>
		<author>Marcum</author>
		<pubDate>Fri, 15 Aug 2008 10:55:46 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-941</guid>
					<description>Hi. Great code :-) I would like to one step further and have the array built from an xml file that is maintained on the website. I can use php simpleXml to get the titles into an array but I am not sure what changes are required to your code so that they are displayed. If it is not possible I will have just manually type them in, but then it is remembering to do it. Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>Hi. Great code <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> I would like to one step further and have the array built from an xml file that is maintained on the website. I can use php simpleXml to get the titles into an array but I am not sure what changes are required to your code so that they are displayed. If it is not possible I will have just manually type them in, but then it is remembering to do it. Any help would be appreciated.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: resim</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-951</link>
		<author>resim</author>
		<pubDate>Tue, 16 Sep 2008 23:25:13 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-951</guid>
					<description>thank you.</description>
		<content:encoded><![CDATA[<p>thank you.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: WarpKat</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-955</link>
		<author>WarpKat</author>
		<pubDate>Mon, 22 Sep 2008 20:18:41 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-955</guid>
					<description>@Marcum:  read in your XML and parse it as an array, then toss the array to the function - not all XML is created equal... =:D

@All:  Hello - this is a great short-method fix for what I needed to do, however, I do have a small inconvenience with it:

The list returned is actually longer than the window it's on.  Is there a way to turn the results into a scroll-barred list or maybe make it so that the list overlays on top of the window itself so the complete list can show?

I hope I explained that right...</description>
		<content:encoded><![CDATA[<p>@Marcum:  read in your XML and parse it as an array, then toss the array to the function - not all XML is created equal&#8230; =:D</p>
<p>@All:  Hello - this is a great short-method fix for what I needed to do, however, I do have a small inconvenience with it:</p>
<p>The list returned is actually longer than the window it&#8217;s on.  Is there a way to turn the results into a scroll-barred list or maybe make it so that the list overlays on top of the window itself so the complete list can show?</p>
<p>I hope I explained that right&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-960</link>
		<author>fromvega</author>
		<pubDate>Mon, 29 Sep 2008 12:36:22 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-960</guid>
					<description>WarpKat, you can set the "hight" of the list container to something that you want then use "overflow-y: scroll" so you can have scrollbars ;)</description>
		<content:encoded><![CDATA[<p>WarpKat, you can set the &#8220;hight&#8221; of the list container to something that you want then use &#8220;overflow-y: scroll&#8221; so you can have scrollbars <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Charly</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-965</link>
		<author>Charly</author>
		<pubDate>Fri, 03 Oct 2008 13:23:11 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-965</guid>
					<description>How do I populate de Array dynamically from MySql Query ? Need Help Please.</description>
		<content:encoded><![CDATA[<p>How do I populate de Array dynamically from MySql Query ? Need Help Please.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Aaron Reynolds</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-966</link>
		<author>Aaron Reynolds</author>
		<pubDate>Tue, 07 Oct 2008 14:17:33 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-966</guid>
					<description>Your code works well and I haven't had to tinker yet.

Due to my Ubuntu install limiting me to PHP v5.1.2 currently I've had to use a 3rd party JSON encoder.

Ended up adapting rewriting it for the purpose.

Available at: &lt;a href="http://dev.enjoyonline.co.uk/auto/ar_json_encoder.php.txt" title="Simple JSON Encoder" rel="nofollow"&gt;http://dev.enjoyonline.co.uk/auto/ar_json_encoder.php.txt&lt;/a&gt;

I'll be coming back to keep up with your other work, thanks - Aaron.</description>
		<content:encoded><![CDATA[<p>Your code works well and I haven&#8217;t had to tinker yet.</p>
<p>Due to my Ubuntu install limiting me to PHP v5.1.2 currently I&#8217;ve had to use a 3rd party JSON encoder.</p>
<p>Ended up adapting rewriting it for the purpose.</p>
<p>Available at: <a href="http://dev.enjoyonline.co.uk/auto/ar_json_encoder.php.txt" title="Simple JSON Encoder" rel="nofollow">http://dev.enjoyonline.co.uk/auto/ar_json_encoder.php.txt</a></p>
<p>I&#8217;ll be coming back to keep up with your other work, thanks - Aaron.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ev arkadaşı</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-975</link>
		<author>ev arkadaşı</author>
		<pubDate>Mon, 20 Oct 2008 16:24:45 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-975</guid>
					<description>thank you :)</description>
		<content:encoded><![CDATA[<p>thank you <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: fromvega</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1179</link>
		<author>fromvega</author>
		<pubDate>Mon, 24 Nov 2008 23:56:49 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1179</guid>
					<description>Hey Charly, you can't populate directly from a MySQL query. You need to run the query, get the results and then put them into a PHP array. After that you can use a json encoder to send the resulting data back to jquery.</description>
		<content:encoded><![CDATA[<p>Hey Charly, you can&#8217;t populate directly from a MySQL query. You need to run the query, get the results and then put them into a PHP array. After that you can use a json encoder to send the resulting data back to jquery.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: dino</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1184</link>
		<author>dino</author>
		<pubDate>Mon, 01 Dec 2008 10:31:27 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1184</guid>
					<description>hi vega

i have a question, how do i configure it to have a comma on every input

example

name1, name2, name3

whats happening now is when i put a comma on name1 then i choose again another name for example name2, name1 will be replaced by name2

another question is:

why is that when i input a word with one instace in my array in doesnt show up on the list but when i input with another input with many instances of that word it will show on list

thanks in advance and great job on the code</description>
		<content:encoded><![CDATA[<p>hi vega</p>
<p>i have a question, how do i configure it to have a comma on every input</p>
<p>example</p>
<p>name1, name2, name3</p>
<p>whats happening now is when i put a comma on name1 then i choose again another name for example name2, name1 will be replaced by name2</p>
<p>another question is:</p>
<p>why is that when i input a word with one instace in my array in doesnt show up on the list but when i input with another input with many instances of that word it will show on list</p>
<p>thanks in advance and great job on the code</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: J</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1189</link>
		<author>J</author>
		<pubDate>Fri, 12 Dec 2008 17:03:52 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1189</guid>
					<description>Is there a way to limit the results?</description>
		<content:encoded><![CDATA[<p>Is there a way to limit the results?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: refins</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1191</link>
		<author>refins</author>
		<pubDate>Wed, 17 Dec 2008 04:11:25 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1191</guid>
					<description>i am a newbie,
I have a same problem with Rehman, the autocomplete doesn't work in localhost
if the script is setAutoComplete(”searchField”, “results”, “autocomplete.php?part=”);
but it does work well
if i put the script like this :
setAutoComplete(”searchField”, “results”, “http://fromvega.com/code/autocomplete/autocomplete.php?part=”);

because i'm using php v.5.1.1 so i try to download zend framework from
http://framework.zend.com/
(since there is a require file : Zend/Json/encoder.php)
but the problem still happens
i suppose it is caused by the version of the zend framework. 
Could someone help me,please?</description>
		<content:encoded><![CDATA[<p>i am a newbie,<br />
I have a same problem with Rehman, the autocomplete doesn&#8217;t work in localhost<br />
if the script is setAutoComplete(”searchField”, “results”, “autocomplete.php?part=”);<br />
but it does work well<br />
if i put the script like this :<br />
setAutoComplete(”searchField”, “results”, “http://fromvega.com/code/autocomplete/autocomplete.php?part=”);</p>
<p>because i&#8217;m using php v.5.1.1 so i try to download zend framework from<br />
<a href="http://framework.zend.com/" rel="nofollow">http://framework.zend.com/</a><br />
(since there is a require file : Zend/Json/encoder.php)<br />
but the problem still happens<br />
i suppose it is caused by the version of the zend framework.<br />
Could someone help me,please?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: oyun hileleri</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1194</link>
		<author>oyun hileleri</author>
		<pubDate>Sat, 20 Dec 2008 18:22:17 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1194</guid>
					<description>help pls How do I populate de Array dynamically ( from MySql Query.</description>
		<content:encoded><![CDATA[<p>help pls How do I populate de Array dynamically ( from MySql Query.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: gebelikte moralsizlik</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1196</link>
		<author>gebelikte moralsizlik</author>
		<pubDate>Mon, 22 Dec 2008 09:32:34 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1196</guid>
					<description>Hey Charly, you can’t populate directly from a MySQL query. You need to run the query, get the results and then put them into a PHP array. After that you can use a json encoder to send the resulting data back to jquery.</description>
		<content:encoded><![CDATA[<p>Hey Charly, you can’t populate directly from a MySQL query. You need to run the query, get the results and then put them into a PHP array. After that you can use a json encoder to send the resulting data back to jquery.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: car alarm system</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1210</link>
		<author>car alarm system</author>
		<pubDate>Fri, 06 Feb 2009 04:48:25 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1210</guid>
					<description>great work!! :)</description>
		<content:encoded><![CDATA[<p>great work!! <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: toki</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1217</link>
		<author>toki</author>
		<pubDate>Sun, 01 Mar 2009 00:09:24 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1217</guid>
					<description>help pls How do I populate de Array dynamically ( from MySql Query.</description>
		<content:encoded><![CDATA[<p>help pls How do I populate de Array dynamically ( from MySql Query.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mira</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1226</link>
		<author>Mira</author>
		<pubDate>Tue, 31 Mar 2009 04:03:43 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1226</guid>
					<description>Hi. Great code :-) I would like to one step further and have the array built from an xml file that is maintained on the website. I can use php simpleXml to get the titles into an array but I am not sure what changes are required to your code so that they are displayed. If it is not possible I will have just manually type them in, but then it is remembering to do it. Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>Hi. Great code <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> I would like to one step further and have the array built from an xml file that is maintained on the website. I can use php simpleXml to get the titles into an array but I am not sure what changes are required to your code so that they are displayed. If it is not possible I will have just manually type them in, but then it is remembering to do it. Any help would be appreciated.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Webdesign Meppel</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1228</link>
		<author>Webdesign Meppel</author>
		<pubDate>Fri, 10 Apr 2009 07:52:05 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1228</guid>
					<description>Awesome! One of the better auto-suggest scripts I have seen over the web. Need to try this one out!</description>
		<content:encoded><![CDATA[<p>Awesome! One of the better auto-suggest scripts I have seen over the web. Need to try this one out!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: plc</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1232</link>
		<author>plc</author>
		<pubDate>Sat, 02 May 2009 02:23:19 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1232</guid>
					<description>Script does not display results if fonts are resized (ctrl + in firefox).  Needs to recalc the result div before updateing the div results.</description>
		<content:encoded><![CDATA[<p>Script does not display results if fonts are resized (ctrl + in firefox).  Needs to recalc the result div before updateing the div results.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Thi Ha</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1246</link>
		<author>Thi Ha</author>
		<pubDate>Tue, 16 Jun 2009 06:36:52 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1246</guid>
					<description>awesome. works like charm.
Although I don't know the back-end work, this is the simplest example I have ever find. 
Only one question :D
How to show the not find message when no matching.

Cheers.
Thanks.
Thi Ha</description>
		<content:encoded><![CDATA[<p>awesome. works like charm.<br />
Although I don&#8217;t know the back-end work, this is the simplest example I have ever find.<br />
Only one question <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
How to show the not find message when no matching.</p>
<p>Cheers.<br />
Thanks.<br />
Thi Ha</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Thi Ha</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1247</link>
		<author>Thi Ha</author>
		<pubDate>Tue, 16 Jun 2009 07:14:04 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1247</guid>
					<description>I got it but just adding this

if(empty($results)){
	$msg[0]= "No matching";
  echo json_encode($msg);
  }else{
  echo json_encode($results);
  }


Another question is where to change the font size, it looks smaller.
thanks
thi ha</description>
		<content:encoded><![CDATA[<p>I got it but just adding this</p>
<p>if(empty($results)){<br />
	$msg[0]= &#8220;No matching&#8221;;<br />
  echo json_encode($msg);<br />
  }else{<br />
  echo json_encode($results);<br />
  }</p>
<p>Another question is where to change the font size, it looks smaller.<br />
thanks<br />
thi ha</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ZK@Web Marketing Blog</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1251</link>
		<author>ZK@Web Marketing Blog</author>
		<pubDate>Sun, 21 Jun 2009 03:52:58 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1251</guid>
					<description>It is built on top of the DOM, and unfortunately, the DOM is not always fun to work with. Luckily, we have an excellent DOM slicer and dicer that we can use alongside Strophe, the jQuery library.</description>
		<content:encoded><![CDATA[<p>It is built on top of the DOM, and unfortunately, the DOM is not always fun to work with. Luckily, we have an excellent DOM slicer and dicer that we can use alongside Strophe, the jQuery library.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Komik Videolar</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1257</link>
		<author>Komik Videolar</author>
		<pubDate>Sun, 12 Jul 2009 11:07:09 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1257</guid>
					<description>Thank all.</description>
		<content:encoded><![CDATA[<p>Thank all.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Leon</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1258</link>
		<author>Leon</author>
		<pubDate>Fri, 17 Jul 2009 18:26:00 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1258</guid>
					<description>Hi there, just a simple question... This autocompleter works if there are 2 text box in the page, because i've been trying make it and it doesn't. Actually it seems that only take the last autocomplete that I wrote in my code... P.E:


$(function(){
    setAutoComplete("searchField", "results", "autocomplete.php?part=");
   setAutoComplete("searchField2", "results2", "autocomplete2.php?part=");
});


this doesn't work and i don't know why... if anybody could help me please...!!!

P.D.- Sorry about my english, I know it's not very good looking... jejejeje...</description>
		<content:encoded><![CDATA[<p>Hi there, just a simple question&#8230; This autocompleter works if there are 2 text box in the page, because i&#8217;ve been trying make it and it doesn&#8217;t. Actually it seems that only take the last autocomplete that I wrote in my code&#8230; P.E:</p>
<p>$(function(){<br />
    setAutoComplete(&#8221;searchField&#8221;, &#8220;results&#8221;, &#8220;autocomplete.php?part=&#8221;);<br />
   setAutoComplete(&#8221;searchField2&#8243;, &#8220;results2&#8243;, &#8220;autocomplete2.php?part=&#8221;);<br />
});</p>
<p>this doesn&#8217;t work and i don&#8217;t know why&#8230; if anybody could help me please&#8230;!!!</p>
<p>P.D.- Sorry about my english, I know it&#8217;s not very good looking&#8230; jejejeje&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: maie</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1260</link>
		<author>maie</author>
		<pubDate>Mon, 20 Jul 2009 10:56:42 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1260</guid>
					<description>hello
In my script i made an array of text fields dinamically from the database
so i want to apply the auto complete on each one but when i make that it does not work please help ASAP you can send answers on my mail
white_horse2040@yahoo.com
Thanks</description>
		<content:encoded><![CDATA[<p>hello<br />
In my script i made an array of text fields dinamically from the database<br />
so i want to apply the auto complete on each one but when i make that it does not work please help ASAP you can send answers on my mail<br />
<a href="mailto:white_horse2040@yahoo.com">white_horse2040@yahoo.com</a><br />
Thanks</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: gaurav dubey</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1267</link>
		<author>gaurav dubey</author>
		<pubDate>Wed, 29 Jul 2009 12:47:54 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1267</guid>
					<description>I have used this example and it works like a charm.
But there is one problem.If I type "r"(lowercase) then it works fine, but if I type "R" there is no suggestions.</description>
		<content:encoded><![CDATA[<p>I have used this example and it works like a charm.<br />
But there is one problem.If I type &#8220;r&#8221;(lowercase) then it works fine, but if I type &#8220;R&#8221; there is no suggestions.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Sathish</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1285</link>
		<author>Sathish</author>
		<pubDate>Wed, 21 Oct 2009 17:47:55 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1285</guid>
					<description>Hi, Your code is very useful, i used database instead of array and now i need to filter with respect to another field in the form, can u guide me pls?</description>
		<content:encoded><![CDATA[<p>Hi, Your code is very useful, i used database instead of array and now i need to filter with respect to another field in the form, can u guide me pls?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: kurshom</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1286</link>
		<author>kurshom</author>
		<pubDate>Tue, 27 Oct 2009 14:47:31 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1286</guid>
					<description>How i retrieve data from data base not from array, please help</description>
		<content:encoded><![CDATA[<p>How i retrieve data from data base not from array, please help</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Kris</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1287</link>
		<author>Kris</author>
		<pubDate>Thu, 29 Oct 2009 19:59:34 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1287</guid>
					<description>Looks good, but strange thing happened.

It requires data in format:
["item1","item2",...]
and JSON is something like:
{0:"item1",1:"item2",...}

Is this a bug or it should be that way?</description>
		<content:encoded><![CDATA[<p>Looks good, but strange thing happened.</p>
<p>It requires data in format:<br />
[&#8221;item1&#8243;,&#8221;item2&#8243;,&#8230;]<br />
and JSON is something like:<br />
{0:&#8221;item1&#8243;,1:&#8221;item2&#8243;,&#8230;}</p>
<p>Is this a bug or it should be that way?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: güzel kızlar</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1289</link>
		<author>güzel kızlar</author>
		<pubDate>Thu, 12 Nov 2009 16:31:05 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1289</guid>
					<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mark</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1297</link>
		<author>mark</author>
		<pubDate>Thu, 07 Jan 2010 20:37:07 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1297</guid>
					<description>Thanks! This is a really simple implementation and was exactly what I was looking for. Thanks so much!</description>
		<content:encoded><![CDATA[<p>Thanks! This is a really simple implementation and was exactly what I was looking for. Thanks so much!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Peter Abolins</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1299</link>
		<author>Peter Abolins</author>
		<pubDate>Thu, 14 Jan 2010 19:03:46 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1299</guid>
					<description>Hi fromvega,

Did you ever complete the multiple input-field auto-complete version (pun intended)? I am modifying a website that used your initial plug-in and if there was indeed an updated version of your plug-in, it would save some work.

If not, that is okay - I'll write my own. Duplicating code (as was suggested for multiple fields) is for script-kiddies - not for programmers :-)</description>
		<content:encoded><![CDATA[<p>Hi fromvega,</p>
<p>Did you ever complete the multiple input-field auto-complete version (pun intended)? I am modifying a website that used your initial plug-in and if there was indeed an updated version of your plug-in, it would save some work.</p>
<p>If not, that is okay - I&#8217;ll write my own. Duplicating code (as was suggested for multiple fields) is for script-kiddies - not for programmers <img src='http://fromvega.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Laurent Chevassu</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1305</link>
		<author>Laurent Chevassu</author>
		<pubDate>Tue, 09 Feb 2010 16:38:06 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1305</guid>
					<description>I have found that clicking on the result div scroll triggered the search input blur event in WebKit, thus hiding the results.

I came up with this hack (working, if not perfect, I couldn't get to just prevent the blur event). It replaces and complements the line "on blur listener" in the original.

scrollFlag = false;

acResultsDiv.mousedown(function(){ scrollFlag = true; });
acResultsDiv.mouseleave(function(){ 
   if ( scrollFlag ) {
   	scrollFlag = false;
   	acSearchField.focus();
   }
});

// on blur listener
acSearchField.blur(function(){ if ( scrollFlag == false ) { setTimeout(function () {clearAutoComplete()}, 200) } });</description>
		<content:encoded><![CDATA[<p>I have found that clicking on the result div scroll triggered the search input blur event in WebKit, thus hiding the results.</p>
<p>I came up with this hack (working, if not perfect, I couldn&#8217;t get to just prevent the blur event). It replaces and complements the line &#8220;on blur listener&#8221; in the original.</p>
<p>scrollFlag = false;</p>
<p>acResultsDiv.mousedown(function(){ scrollFlag = true; });<br />
acResultsDiv.mouseleave(function(){<br />
   if ( scrollFlag ) {<br />
   	scrollFlag = false;<br />
   	acSearchField.focus();<br />
   }<br />
});</p>
<p>// on blur listener<br />
acSearchField.blur(function(){ if ( scrollFlag == false ) { setTimeout(function () {clearAutoComplete()}, 200) } });</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Hadith</title>
		<link>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1308</link>
		<author>Hadith</author>
		<pubDate>Mon, 15 Feb 2010 16:57:11 +0000</pubDate>
		<guid>http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/#comment-1308</guid>
					<description>Nice one, How do I go about changing the array of words to words from a mysql database</description>
		<content:encoded><![CDATA[<p>Nice one, How do I go about changing the array of words to words from a mysql database</p>
]]></content:encoded>
				</item>
</channel>
</rss>
