<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: jquery.suggest, an alternative jQuery based autocomplete library</title>
	<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/</link>
	<description>CTO during the week, CBO during the weekend</description>
	<pubDate>Thu, 28 Aug 2008 18:14:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: michael</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-19453</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Thu, 17 Jul 2008 12:12:31 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-19453</guid>
		<description>How would you go about returning a second response as well as the name that could be inserted into a hidden field.

like searching for "pet" would return "peter" into the text input field and "8" into a hidden input field</description>
		<content:encoded><![CDATA[<p>How would you go about returning a second response as well as the name that could be inserted into a hidden field.</p>
<p>like searching for &#8220;pet&#8221; would return &#8220;peter&#8221; into the text input field and &#8220;8&#8243; into a hidden input field</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willem</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-18699</link>
		<dc:creator>Willem</dc:creator>
		<pubDate>Mon, 07 Jul 2008 21:50:30 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-18699</guid>
		<description>I have your site for its useful and funny content and simple design..</description>
		<content:encoded><![CDATA[<p>I have your site for its useful and funny content and simple design..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 老孔的Blog &#187; Blog Archive &#187; List of Useful jQuery Plugins</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-15223</link>
		<dc:creator>老孔的Blog &#187; Blog Archive &#187; List of Useful jQuery Plugins</dc:creator>
		<pubDate>Wed, 28 May 2008 06:03:09 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-15223</guid>
		<description>[...] browser. Treetable Make a tree view out of an HTML table. Tree ViewEXCELLENT Tree view controls. Suggest Add autocomplete to input fields. YAV Form validation library. jqUploader Provides a status bar for [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] browser. Treetable Make a tree view out of an HTML table. Tree ViewEXCELLENT Tree view controls. Suggest Add autocomplete to input fields. YAV Form validation library. jqUploader Provides a status bar for [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Wills</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-14580</link>
		<dc:creator>Ivan Wills</dc:creator>
		<pubDate>Fri, 16 May 2008 00:41:32 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-14580</guid>
		<description>Hi,

Like jquery@j0rd.com above I have an auto complete that is dependent on another select box, I have tried adding an change function to the other select box which 

eg
HTML



    one
    two


JS
var s = $('#select');
s.change( function() {
    $('#suggest').suggest( '?page=suggest&#38;select=" + s.val() );
});
s.change();

This kind of works execpt that each time you choose a different value of #select you get a new suggest action which appears as well as the old suggest. Is there a way that you could delete old suggests if they exist?

Also is there a way to get a key value pair like a select list may be adding the key to a hidden field?

Ivan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Like <a href="mailto:jquery@j0rd.com">jquery@j0rd.com</a> above I have an auto complete that is dependent on another select box, I have tried adding an change function to the other select box which </p>
<p>eg<br />
HTML</p>
<p>    one<br />
    two</p>
<p>JS<br />
var s = $(&#8217;#select&#8217;);<br />
s.change( function() {<br />
    $(&#8217;#suggest&#8217;).suggest( &#8216;?page=suggest&amp;select=&#8221; + s.val() );<br />
});<br />
s.change();</p>
<p>This kind of works execpt that each time you choose a different value of #select you get a new suggest action which appears as well as the old suggest. Is there a way that you could delete old suggests if they exist?</p>
<p>Also is there a way to get a key value pair like a select list may be adding the key to a hidden field?</p>
<p>Ivan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zoran</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-13987</link>
		<dc:creator>zoran</dc:creator>
		<pubDate>Thu, 01 May 2008 16:48:12 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-13987</guid>
		<description>Learn to write documentation!!
Danke.</description>
		<content:encoded><![CDATA[<p>Learn to write documentation!!<br />
Danke.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vitto</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-13356</link>
		<dc:creator>vitto</dc:creator>
		<pubDate>Thu, 03 Apr 2008 13:28:29 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-13356</guid>
		<description>hi
i haven't actually tried your plugin (yet!) but i'm wondering if i can restrict the search only around the first letters i type in the input field. I mean:

i type "a" and i receive only words starting with "a", then i add "s" and i receive only words starting with "as".

thanks 
vitto</description>
		<content:encoded><![CDATA[<p>hi<br />
i haven&#8217;t actually tried your plugin (yet!) but i&#8217;m wondering if i can restrict the search only around the first letters i type in the input field. I mean:</p>
<p>i type &#8220;a&#8221; and i receive only words starting with &#8220;a&#8221;, then i add &#8220;s&#8221; and i receive only words starting with &#8220;as&#8221;.</p>
<p>thanks<br />
vitto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Fagiani</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-13076</link>
		<dc:creator>Paulo Fagiani</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:14:07 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-13076</guid>
		<description>I've come up with a simple hack that will allow you to use DWR calls as an alternative to the current regular AJAX calls, to do so, just replace this code:

$.get(options.source, {q: q}, function(txt) {
	$results.hide();
	var items = parseTxt(txt, q);
	displayItems(items);
	addToCache(q, items, txt.length);
});

with:

if(typeof options.source == "string")
{
       //This is what suggest would do by default...
	$.get(options.source, {q: q}, function(txt) {
		$results.hide();
		var items = parseTxt(txt, q);
		displayItems(items);
		addToCache(q, items, txt.length);
	});
}
else
{
	//This is the DWR implementation hack... yeah, need to DRY some code here, but just want to keep it a simple hack!
	options.source(q, function(data)
	{
		var txt = "";
		for(var i = 0; i &#60; data.length; i++)
		{
			txt += data[i] + "\n";
		}
		$results.hide();
		var items = parseTxt(txt, q);
		displayItems(items);
		addToCache(q, items, txt.length);
	});
}

This hack won't break the current way of using it. To use DWR, just pass the source as the class.method like: MyDWRClass.myDWRMethod without quotes, then it will recognize it is a class and will send the first parameter as the typed text and handle the data that comes back.

Maybe this can be patched to the main plugin? Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve come up with a simple hack that will allow you to use DWR calls as an alternative to the current regular AJAX calls, to do so, just replace this code:</p>
<p>$.get(options.source, {q: q}, function(txt) {<br />
	$results.hide();<br />
	var items = parseTxt(txt, q);<br />
	displayItems(items);<br />
	addToCache(q, items, txt.length);<br />
});</p>
<p>with:</p>
<p>if(typeof options.source == &#8220;string&#8221;)<br />
{<br />
       //This is what suggest would do by default&#8230;<br />
	$.get(options.source, {q: q}, function(txt) {<br />
		$results.hide();<br />
		var items = parseTxt(txt, q);<br />
		displayItems(items);<br />
		addToCache(q, items, txt.length);<br />
	});<br />
}<br />
else<br />
{<br />
	//This is the DWR implementation hack&#8230; yeah, need to DRY some code here, but just want to keep it a simple hack!<br />
	options.source(q, function(data)<br />
	{<br />
		var txt = &#8220;&#8221;;<br />
		for(var i = 0; i &lt; data.length; i++)<br />
		{<br />
			txt += data[i] + &#8220;\n&#8221;;<br />
		}<br />
		$results.hide();<br />
		var items = parseTxt(txt, q);<br />
		displayItems(items);<br />
		addToCache(q, items, txt.length);<br />
	});<br />
}</p>
<p>This hack won&#8217;t break the current way of using it. To use DWR, just pass the source as the class.method like: MyDWRClass.myDWRMethod without quotes, then it will recognize it is a class and will send the first parameter as the typed text and handle the data that comes back.</p>
<p>Maybe this can be patched to the main plugin? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francis del Mundo</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-12894</link>
		<dc:creator>Francis del Mundo</dc:creator>
		<pubDate>Wed, 12 Mar 2008 12:19:25 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-12894</guid>
		<description>Whenever I call a new .suggest() on a text box, the number of dropdown instances increases by one.

Couldn't figure out how to fix this one.  Any suggestions?</description>
		<content:encoded><![CDATA[<p>Whenever I call a new .suggest() on a text box, the number of dropdown instances increases by one.</p>
<p>Couldn&#8217;t figure out how to fix this one.  Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yaroslav Vorozhko</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-12476</link>
		<dc:creator>Yaroslav Vorozhko</dc:creator>
		<pubDate>Mon, 03 Mar 2008 10:15:12 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-12476</guid>
		<description>Hi guys,
thanks for this greate plugin.
I have one problem.
How to pass multiple parameters with query.
I need pass not only search query, i need also pass type('cars', 'mobiles', ...) and some additional parameters.
My code is following:
jQuery(function() {
jQuery("#suggest").suggest("searchSuggest",{source:"ltype"+$('#ltype').val()})
});

But it is don't work.

How can i fix it?
Thank You,
Yaroslav</description>
		<content:encoded><![CDATA[<p>Hi guys,<br />
thanks for this greate plugin.<br />
I have one problem.<br />
How to pass multiple parameters with query.<br />
I need pass not only search query, i need also pass type(&#8217;cars&#8217;, &#8216;mobiles&#8217;, &#8230;) and some additional parameters.<br />
My code is following:<br />
jQuery(function() {<br />
jQuery(&#8221;#suggest&#8221;).suggest(&#8221;searchSuggest&#8221;,{source:&#8221;ltype&#8221;+$(&#8217;#ltype&#8217;).val()})<br />
});</p>
<p>But it is don&#8217;t work.</p>
<p>How can i fix it?<br />
Thank You,<br />
Yaroslav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pease</title>
		<link>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-12241</link>
		<dc:creator>Pease</dc:creator>
		<pubDate>Wed, 27 Feb 2008 06:17:07 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/#comment-12241</guid>
		<description>I find a bug in your code,"$results.html(html).show();" remove the iframe html and make it not work</description>
		<content:encoded><![CDATA[<p>I find a bug in your code,&#8221;$results.html(html).show();&#8221; remove the iframe html and make it not work</p>
]]></content:encoded>
	</item>
</channel>
</rss>
