<?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"
	>
<channel>
	<title>Comments for Practical Programming&#187; jQuery Google Suggest goes Live on DiscMakers.com!</title>
	<atom:link href="http://www.programmers.org/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.programmers.org</link>
	<description>Experience is knowledge.</description>
	<pubDate>Fri, 30 Jul 2010 23:30:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1863</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Mon, 10 May 2010 12:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1863</guid>
		<description>Your JSON Array is structured just fine, but you need to have the "?" replaced with the value in the URL parameter named "callback" aka. $_GET["callback"].

As I said before, if you need cross domain support for your callback you can modify the code to use JSONP.

Happy coding 8-)</description>
		<content:encoded><![CDATA[<p>Your JSON Array is structured just fine, but you need to have the &#8220;?&#8221; replaced with the value in the URL parameter named &#8220;callback&#8221; aka. $_GET["callback"].</p>
<p>As I said before, if you need cross domain support for your callback you can modify the code to use JSONP.</p>
<p>Happy coding <img src='http://www.programmers.org/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery Google Suggest goes Live on DiscMakers.com! by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2010/05/jquery-google-suggest-goes-live-on-discmakerscom/#comment-1854</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Wed, 05 May 2010 14:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=443#comment-1854</guid>
		<description>CK tells me its going up on oasiscd.com soon too. I'll post the jump when it goes Live. Peace.</description>
		<content:encoded><![CDATA[<p>CK tells me its going up on oasiscd.com soon too. I&#8217;ll post the jump when it goes Live. Peace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Jacek</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1836</link>
		<dc:creator>Jacek</dc:creator>
		<pubDate>Tue, 13 Apr 2010 09:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1836</guid>
		<description>Hello,

Your are right: I've defined static script in PHP that always returns the same content for testing purposes only - IMHO as long as I enter a single 'a' letter in input field it should work but it doesn't. So that's why I asked you about the output format of your suggest.cfc script. Properly formated JSON array is like: ['A...','A...','...'] but it's not working in this case, too. 
So pls, tell me what the output format of AJAX data should be like?

BTW calling your script from other domain works in FF 3.6 but not in IE8 - I understand it it's security issue.

Jacek</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Your are right: I&#8217;ve defined static script in PHP that always returns the same content for testing purposes only - IMHO as long as I enter a single &#8216;a&#8217; letter in input field it should work but it doesn&#8217;t. So that&#8217;s why I asked you about the output format of your suggest.cfc script. Properly formated JSON array is like: ['A...','A...','...'] but it&#8217;s not working in this case, too.<br />
So pls, tell me what the output format of AJAX data should be like?</p>
<p>BTW calling your script from other domain works in FF 3.6 but not in IE8 - I understand it it&#8217;s security issue.</p>
<p>Jacek</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1833</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Mon, 12 Apr 2010 14:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1833</guid>
		<description>&lt;a href="#comment-1824" rel="nofollow"&gt;@Jacek&lt;/a&gt; 

Jacek,

Your file will always contain the same content because you defined a static JSON set i.e. ‘?(["Alejandra Camino...

Using my file as a remote call to test won't work either. You need to have your class that returns the JSON on the same domain b/c gsuggest uses $.getJSON and not JSONP.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1824" rel="nofollow">@Jacek</a> </p>
<p>Jacek,</p>
<p>Your file will always contain the same content because you defined a static JSON set i.e. ‘?([&#8221;Alejandra Camino&#8230;</p>
<p>Using my file as a remote call to test won&#8217;t work either. You need to have your class that returns the JSON on the same domain b/c gsuggest uses $.getJSON and not JSONP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Jacek</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1824</link>
		<dc:creator>Jacek</dc:creator>
		<pubDate>Fri, 09 Apr 2010 13:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1824</guid>
		<description>My suggest.php file:
echo '?(["Alejandra Camino","Alexander Feuer","Ana Trujillo","Anabela Domingues","André Fonseca","Ann Devon","Annette Roulet","Antonio Moreno","Aria Cruz","Art Braunschweiger"])';</description>
		<content:encoded><![CDATA[<p>My suggest.php file:<br />
echo &#8216;?(["Alejandra Camino","Alexander Feuer","Ana Trujillo","Anabela Domingues","André Fonseca","Ann Devon","Annette Roulet","Antonio Moreno","Aria Cruz","Art Braunschweiger"])&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Jacek</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1823</link>
		<dc:creator>Jacek</dc:creator>
		<pubDate>Fri, 09 Apr 2010 13:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1823</guid>
		<description>Hi,
I've a big trouble with your script. I cannot force it to work on my localhost (W7, Apache, PHP). I've done the following:
1. I've copied the example (“SEE IT IN ACTION”) to may local machine and named it index.html
2. I've also copied jquery-1.3.2.min.js and jquery.gsuggest.js and run the script with the 'url'=http://www.micah-lacombe.com/utils/suggest.cfc and it's OK in Firefox but not in IE8 and IE6 (XPMode)!
3. I've place a call to suggest.cfc in FF: 
http://www.micah-lacombe.com/utils/suggest.cfc?method=gsuggest_customer&#38;value=a&#38;callback=?
and it has returned: 
?(["Alejandra Camino","Alexander Feuer","Ana Trujillo","Anabela Domingues","André Fonseca","Ann Devon","Annette Roulet","Antonio Moreno","Aria Cruz","Art Braunschweiger"])
4. I've prepared local file 'suggest.php' that contained the above string:

5. It is not working! The string from suggest.php is always the same regardless of input:text value but even for 'a' it's not working. 

Any suggestions?

Regards,
Jacek</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;ve a big trouble with your script. I cannot force it to work on my localhost (W7, Apache, PHP). I&#8217;ve done the following:<br />
1. I&#8217;ve copied the example (“SEE IT IN ACTION”) to may local machine and named it index.html<br />
2. I&#8217;ve also copied jquery-1.3.2.min.js and jquery.gsuggest.js and run the script with the &#8216;url&#8217;=http://www.micah-lacombe.com/utils/suggest.cfc and it&#8217;s OK in Firefox but not in IE8 and IE6 (XPMode)!<br />
3. I&#8217;ve place a call to suggest.cfc in FF:<br />
<a href="http://www.micah-lacombe.com/utils/suggest.cfc?method=gsuggest_customer&amp;value=a&amp;callback=?" rel="nofollow">http://www.micah-lacombe.com/utils/suggest.cfc?method=gsuggest_customer&amp;value=a&amp;callback=?</a><br />
and it has returned:<br />
?(["Alejandra Camino","Alexander Feuer","Ana Trujillo","Anabela Domingues","André Fonseca","Ann Devon","Annette Roulet","Antonio Moreno","Aria Cruz","Art Braunschweiger"])<br />
4. I&#8217;ve prepared local file &#8217;suggest.php&#8217; that contained the above string:</p>
<p>5. It is not working! The string from suggest.php is always the same regardless of input:text value but even for &#8216;a&#8217; it&#8217;s not working. </p>
<p>Any suggestions?</p>
<p>Regards,<br />
Jacek</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Practical Programming&#187; JQuery Google Suggest (jquery.gsuggest.js) - update</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1814</link>
		<dc:creator>Practical Programming&#187; JQuery Google Suggest (jquery.gsuggest.js) - update</dc:creator>
		<pubDate>Tue, 30 Mar 2010 15:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1814</guid>
		<description>[...] See more at the original post, JQuery Google Suggest (jquery.gsugguest.js). [...]</description>
		<content:encoded><![CDATA[<p>[...] See more at the original post, JQuery Google Suggest (jquery.gsugguest.js). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Microsoft Visual C# Default Keybindings by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2010/03/microsoft-visual-c-default-keybindings/#comment-1809</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Wed, 24 Mar 2010 16:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=407#comment-1809</guid>
		<description>Text Manipulation Shortcut Keys, Visual C# Scheme

http://msdn.microsoft.com/en-us/library/ms366735.aspx</description>
		<content:encoded><![CDATA[<p>Text Manipulation Shortcut Keys, Visual C# Scheme</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms366735.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms366735.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1776</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Mon, 22 Feb 2010 03:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1776</guid>
		<description>&lt;a href="#comment-1768" rel="nofollow"&gt;@Brian&lt;/a&gt; 

I was thinking about this some more and realized I forgot to mention that you don't really need to use a web service if you don't want to. You can actually specify a separate file for each input by using a different config on each. If you take a look at the script you'll see how to do this but if you get stuck or need a sample let me know. 

I prefer to consolidate everything in one place (aka one file) because it keeps it easier to manage... but that all depends on how your software is engineered.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1768" rel="nofollow">@Brian</a> </p>
<p>I was thinking about this some more and realized I forgot to mention that you don&#8217;t really need to use a web service if you don&#8217;t want to. You can actually specify a separate file for each input by using a different config on each. If you take a look at the script you&#8217;ll see how to do this but if you get stuck or need a sample let me know. </p>
<p>I prefer to consolidate everything in one place (aka one file) because it keeps it easier to manage&#8230; but that all depends on how your software is engineered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery Google Suggest (jquery.gsuggest.js) by Micah Lacombe</title>
		<link>http://www.programmers.org/index.php/2009/12/jquery-google-suggest-jquerygsuggestjs/#comment-1774</link>
		<dc:creator>Micah Lacombe</dc:creator>
		<pubDate>Sun, 21 Feb 2010 23:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.programmers.org/?p=323#comment-1774</guid>
		<description>&lt;a href="#comment-1768" rel="nofollow"&gt;@Brian&lt;/a&gt; 

Brian,

Don't be scared off by the CFC. It is essentially the same thing as an object in any other language. In this particular case however it is a remote object, aka a Web Service. You can create your own Web Service in cf, php, .net, etc. That having been said you could also implement it without object remoting by doing an evaluate on the appropriate url parameters... the only requirement here is that the data is returned to gsuggest in the correct format.

Here is the code for the CFC:

http://www.micah-lacombe.com/utils/suggest_cfc_code.cfm

Notice the comment at the bottom:

&lt;code&gt;
&#60;!---
var method = obj.form.name + '_' + obj.name;
var surl = $.gsuggest.config.url + &#34;?method=&#34;+method+&#34;&#38;value=&#34;+objval+&#34;&#38;callback=?&#34;;
---&#62; 
&lt;/code&gt;

This is where gsuggest sets up the url to use during the ajax call. As mentioned in the main article, [method] is the name of the method which gets executed, and [value] is the value currently in the text box. CF uses [method] as part of its remote call, however other languages may be different.... so you can update gsugggest.js to reflect whatever type of url you need and even add multiple language options by enhancing the configuration. Also, [callback] is something jquery uses (so that is also required).

The data you return needs to be formatted in JSON:

&lt;code&gt;
"#callback#(#serializejson(listtoarray(valuelist(qcustomers.contactname)))#)"&gt;
&lt;/code&gt;

This is outputing the value of [callback] as a function, hence the parenthesis. And the parameter value of that function is simply a JSON Simple Array. For further CFML Details, hit up google or ask me.

Good luck and let me know how it goes!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1768" rel="nofollow">@Brian</a> </p>
<p>Brian,</p>
<p>Don&#8217;t be scared off by the CFC. It is essentially the same thing as an object in any other language. In this particular case however it is a remote object, aka a Web Service. You can create your own Web Service in cf, php, .net, etc. That having been said you could also implement it without object remoting by doing an evaluate on the appropriate url parameters&#8230; the only requirement here is that the data is returned to gsuggest in the correct format.</p>
<p>Here is the code for the CFC:</p>
<p><a href="http://www.micah-lacombe.com/utils/suggest_cfc_code.cfm" rel="nofollow">http://www.micah-lacombe.com/utils/suggest_cfc_code.cfm</a></p>
<p>Notice the comment at the bottom:</p>
<p><code><br />
&lt;!---<br />
var method = obj.form.name + '_' + obj.name;<br />
var surl = $.gsuggest.config.url + &quot;?method=&quot;+method+&quot;&amp;value=&quot;+objval+&quot;&amp;callback=?&quot;;<br />
---&gt;<br />
</code></p>
<p>This is where gsuggest sets up the url to use during the ajax call. As mentioned in the main article, [method] is the name of the method which gets executed, and [value] is the value currently in the text box. CF uses [method] as part of its remote call, however other languages may be different&#8230;. so you can update gsugggest.js to reflect whatever type of url you need and even add multiple language options by enhancing the configuration. Also, [callback] is something jquery uses (so that is also required).</p>
<p>The data you return needs to be formatted in JSON:</p>
<p><code><br />
"#callback#(#serializejson(listtoarray(valuelist(qcustomers.contactname)))#)"><br />
</code></p>
<p>This is outputing the value of [callback] as a function, hence the parenthesis. And the parameter value of that function is simply a JSON Simple Array. For further CFML Details, hit up google or ask me.</p>
<p>Good luck and let me know how it goes!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
