<?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: jQuery JSON Suggest/Search Box</title>
	<atom:link href="http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomcoote.co.uk</link>
	<description>An ace web developer!</description>
	<lastBuildDate>Mon, 14 May 2012 13:35:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marx</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-49193</link>
		<dc:creator>Marx</dc:creator>
		<pubDate>Wed, 11 Apr 2012 14:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-49193</guid>
		<description>Gracias/Thanks Tom!</description>
		<content:encoded><![CDATA[<p>Gracias/Thanks Tom!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Coote</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-48668</link>
		<dc:creator>Tom Coote</dc:creator>
		<pubDate>Sun, 08 Apr 2012 10:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-48668</guid>
		<description>The reason the form submits is because the event for the return key isn’t being stopped at the suggest box so it carries on going up the event chain until it submits the form. To solve it you need to set up an event that captures the return key press for the suggest box and cancels the event chain. You could either add a keypress event in to the plugin code itself or you could place the auto suggest input box inside a containing element which has a keypress event attached to it. For example;

&lt;div&gt;&lt;input type=”text” /&gt;&lt;/div&gt;

$(‘div’).keypress(function(e) {
return (e.which !== 13);
});

Something like that anyway!</description>
		<content:encoded><![CDATA[<p>The reason the form submits is because the event for the return key isn’t being stopped at the suggest box so it carries on going up the event chain until it submits the form. To solve it you need to set up an event that captures the return key press for the suggest box and cancels the event chain. You could either add a keypress event in to the plugin code itself or you could place the auto suggest input box inside a containing element which has a keypress event attached to it. For example;</p>
<div>
<input type=”text” /></div>
<p>$(‘div’).keypress(function(e) {<br />
return (e.which !== 13);<br />
});</p>
<p>Something like that anyway!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marx</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-48636</link>
		<dc:creator>Marx</dc:creator>
		<pubDate>Sun, 08 Apr 2012 04:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-48636</guid>
		<description>Hi Tom,
Thank you for sharing your work!
I have a little problem: when I click the results, it works as expected, but when I press Enter in the selected item, it do a postback. Do you know how could avoid it?

Thank you very much again.</description>
		<content:encoded><![CDATA[<p>Hi Tom,<br />
Thank you for sharing your work!<br />
I have a little problem: when I click the results, it works as expected, but when I press Enter in the selected item, it do a postback. Do you know how could avoid it?</p>
<p>Thank you very much again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Coote</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-41412</link>
		<dc:creator>Tom Coote</dc:creator>
		<pubDate>Sat, 18 Feb 2012 15:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-41412</guid>
		<description>Hi Pablo. I&#039;ve put the version 2 of this plugin on GitHub. https://github.com/cootetom/jQuery-JSON-Suggest-Search-Box</description>
		<content:encoded><![CDATA[<p>Hi Pablo. I&#8217;ve put the version 2 of this plugin on GitHub. <a href="https://github.com/cootetom/jQuery-JSON-Suggest-Search-Box" rel="nofollow">https://github.com/cootetom/jQuery-JSON-Suggest-Search-Box</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PabloM</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-41279</link>
		<dc:creator>PabloM</dc:creator>
		<pubDate>Fri, 17 Feb 2012 19:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-41279</guid>
		<description>Is there a repo on github or something? I want to make a little change (include href in found items) and I can&#039;t find the code.</description>
		<content:encoded><![CDATA[<p>Is there a repo on github or something? I want to make a little change (include href in found items) and I can&#8217;t find the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Crennan</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-27092</link>
		<dc:creator>John Crennan</dc:creator>
		<pubDate>Mon, 31 Oct 2011 09:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-27092</guid>
		<description>just found out my answer

function callback(item) {
	setURL = &#039;http://www.afltcc.com.au/index.php?option=com_jumi&amp;fileid=78&amp;Itemid=177&amp;SID=&#039; + item.id;
 window.location.assign(setURL)
}</description>
		<content:encoded><![CDATA[<p>just found out my answer</p>
<p>function callback(item) {<br />
	setURL = &#8216;http://www.afltcc.com.au/index.php?option=com_jumi&amp;fileid=78&amp;Itemid=177&amp;SID=&#8217; + item.id;<br />
 window.location.assign(setURL)<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Coote</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-27091</link>
		<dc:creator>Tom Coote</dc:creator>
		<pubDate>Mon, 31 Oct 2011 09:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-27091</guid>
		<description>If you&#039;re passing an array of data to the plugin then the callback function will receive the array item that was selected by the user. So if your array is...

[{id: 1, text: &#039;one&#039;}, {id: 2, text: &#039;two&#039;}]

...and the user chooses &#039;two&#039; then the callback will be passed the second item which would be {id: 2, text: &#039;two&#039;}. Find inside the function you can then use item.id or item.text for what ever you need.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re passing an array of data to the plugin then the callback function will receive the array item that was selected by the user. So if your array is&#8230;</p>
<p>[{id: 1, text: 'one'}, {id: 2, text: 'two'}]</p>
<p>&#8230;and the user chooses &#8216;two&#8217; then the callback will be passed the second item which would be {id: 2, text: &#8216;two&#8217;}. Find inside the function you can then use item.id or item.text for what ever you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Crennan</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-27089</link>
		<dc:creator>John Crennan</dc:creator>
		<pubDate>Mon, 31 Oct 2011 08:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-27089</guid>
		<description>I am using your JSON suggesBox script and still fairly new to javascript.

I am hoping from the result selected to be able to use the item ID as part of a URL

i.e. http://www.sitename.com/index.php?option=com_jumi&amp;fileid=78&amp;Itemid=177&amp;SID={item.id}

but for the life of me cant work out how to do this, I assume that it is in the callback(item) code.
function callback(item) {
	alert(&#039;You selected \&#039;&#039; + item.text + &#039;\&#039;\n\n&#039;);
}

Any suggestion would be appreciated or if there is a better way to do this.</description>
		<content:encoded><![CDATA[<p>I am using your JSON suggesBox script and still fairly new to javascript.</p>
<p>I am hoping from the result selected to be able to use the item ID as part of a URL</p>
<p>i.e. <a href="http://www.sitename.com/index.php?option=com_jumi&amp;fileid=78&amp;Itemid=177&amp;SID=" rel="nofollow">http://www.sitename.com/index.php?option=com_jumi&amp;fileid=78&amp;Itemid=177&amp;SID=</a>{item.id}</p>
<p>but for the life of me cant work out how to do this, I assume that it is in the callback(item) code.<br />
function callback(item) {<br />
	alert(&#8216;You selected \&#8221; + item.text + &#8216;\&#8217;\n\n&#8217;);<br />
}</p>
<p>Any suggestion would be appreciated or if there is a better way to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Coote</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-21654</link>
		<dc:creator>Tom Coote</dc:creator>
		<pubDate>Thu, 01 Sep 2011 17:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-21654</guid>
		<description>I&#039;m not sure how it would perform with that many possible results, slowly at a guess. If you use the max results setting then performance would be better depending on what was searched for.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure how it would perform with that many possible results, slowly at a guess. If you use the max results setting then performance would be better depending on what was searched for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khensolomon</title>
		<link>http://tomcoote.co.uk/code-bank/jquery-json-suggestsearch-box/comment-page-1/#comment-21652</link>
		<dc:creator>khensolomon</dc:creator>
		<pubDate>Thu, 01 Sep 2011 17:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://cootetom.co.uk/?page_id=53#comment-21652</guid>
		<description>First thing first!

Thank you for your code. It is very hard to find such a nice script. It&#039;s work on every Browsers! I was wondering about one thing: is there any size limitation? Because i have plan to use on chrome extension as dictionary -&gt; auto-suggest and i will have 80000 words or more. 

or

can we have something like:

var FA = str.substr(0,1);
$.getJSON(FA +&quot;_wordlist.txt&quot;,
		function(data){
			$(&#039;input#suggestBox3&#039;).jsonSuggest(data, {maxResults:20});
		}
	);

thank you
khen</description>
		<content:encoded><![CDATA[<p>First thing first!</p>
<p>Thank you for your code. It is very hard to find such a nice script. It&#8217;s work on every Browsers! I was wondering about one thing: is there any size limitation? Because i have plan to use on chrome extension as dictionary -&gt; auto-suggest and i will have 80000 words or more. </p>
<p>or</p>
<p>can we have something like:</p>
<p>var FA = str.substr(0,1);<br />
$.getJSON(FA +&#8221;_wordlist.txt&#8221;,<br />
		function(data){<br />
			$(&#8216;input#suggestBox3&#8242;).jsonSuggest(data, {maxResults:20});<br />
		}<br />
	);</p>
<p>thank you<br />
khen</p>
]]></content:encoded>
	</item>
</channel>
</rss>

