<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Against All Odds - jSON</title>
			<link>http://www.ppshein.net/index.cfm</link>
			<description>A blog for ColdFusion, Android, jQuery, jQueryMobile, Oracle, HL7 and other Web-based programming languages, Web Server like IIS7 and RDMS like Oracle, Microsoft SQL and MySQL.</description>
			<language>en-us</language>
			<pubDate>Fri, 24 May 2013 05:13:36 -0700</pubDate>
			<lastBuildDate>Thu, 31 Mar 2011 21:06:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>pyaephyoeshein@gmail.com</managingEditor>
			<webMaster>pyaephyoeshein@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>pyaephyoeshein@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Change BlogCFC tweetbacks function</title>
				<link>http://www.ppshein.net/index.cfm/2011/3/31/Change-BlogCFC-tweetbacks-function</link>
				<description>
				
				Yesterday night, I was troubleshooting why my tweetbacks aren&apos;t coming out even they&apos;re in Twitter. I&apos;ve asked &lt;a href=&quot;http://www.coldfusionjedi.com/&quot; target=&quot;_blank&quot;&gt;Ray&lt;/a&gt; about this problem and he told me that previous version of BlogCFC is completely working for tweetbacks but in current version, it doesn&apos;t work at all. That&apos;s why I was troubleshooting on &lt;b&gt;SweetTweets.cfc&lt;/b&gt; and make complicated testing. Finally, I found it&apos;s because &lt;b&gt;getShortURLs&lt;/b&gt; function of it. In blogCFC infrastructure, it posts blog URL into &lt;b&gt;getShortURLs&lt;/b&gt; function and which will make the short URLs and search those short URLs in twitter by &lt;b&gt;getTweetSearchUrl&lt;/b&gt; function. So, &lt;b&gt;getTweetSearchUrl&lt;/b&gt; found no records for my short URLs in twitter. That&apos;s why I&apos;ve changed not to make short URLs and search &lt;b&gt;Original URLs&lt;/b&gt; in twitter and found some of results from twitter as jSON format data.
				 [More]
				</description>
				
				
				<category>BlogCFC</category>
				
				<category>jSON</category>
				
				<category>Twitter</category>
				
				<pubDate>Thu, 31 Mar 2011 21:06:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/3/31/Change-BlogCFC-tweetbacks-function</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Coldfusion Webservices and JSON</title>
				<link>http://www.ppshein.net/index.cfm/2009/11/26/coldfusion-webservices-and-json</link>
				<description>
				
				&lt;p&gt;I&apos;ve recently tested CF web services and &lt;a href=&quot;http://en.wikipedia.org/wiki/JSON&quot; target=&quot;_blank&quot;&gt;JSON&lt;/a&gt;. The outcome is incredible. Because, I&apos;m very new to &lt;a href=&quot;http://en.wikipedia.org/wiki/JSON&quot; target=&quot;_blank&quot;&gt;JSON&lt;/a&gt; and CF web services. That&apos;s why I&apos;m very proud of myself what I did. That&apos;s what I want to do in &lt;a href=&quot;http://en.wikipedia.org/wiki/Burma&quot; target=&quot;_blank&quot;&gt;Myanmar&lt;/a&gt; about synchronization two web applications over the internet for sharing data.
In these testing, I&apos;ve also used &lt;a href=&quot;http://ppshein.wordpress.com/2010/06/29/ajax-submitform/&quot; target=&quot;_blank&quot;&gt;Coldfusion ajax submitForm&lt;/a&gt;. In briefly, when user type, then will be displayed &lt;a href=&quot;http://en.wikipedia.org/wiki/JSON&quot; target=&quot;_blank&quot;&gt;JSON&lt;/a&gt; format.
I&apos;ve got some &lt;a href=&quot;http://en.wikipedia.org/wiki/JSON&quot; target=&quot;_blank&quot;&gt;JSON&lt;/a&gt; knowledge from &lt;a href=&quot;http://www.bennadel.com/&quot; target=&quot;_blank&quot;&gt;Ben Nadel&lt;/a&gt; blog.
&lt;span style=&quot;text-decoration: underline;&quot;&gt;getJSON.cfc&lt;/span&gt;
&lt;code&gt;&lt;cfcomponent output=&quot;false&quot;&gt;
&lt;cffunction name=&quot;jsonData&quot; access=&quot;remote&quot; returntype=&quot;array&quot; returnformat=&quot;json&quot; output=&quot;false&quot; hint=&quot;Return JSON Format Data&quot;&gt;
&lt;cfargument name=&quot;Text&quot; type=&quot;string&quot; required=&quot;true&quot;&gt;
&lt;cfset getJ = ArrayNew(1)&gt;
&lt;cfloop from=&quot;1&quot; to=&quot;#ListLen(Text, &quot; &quot;)#&quot; index=&quot;i&quot;&gt;
&lt;cfset getJ[i] = ListGetAt(Text, i, &quot; &quot;)&gt;
&lt;/cfloop&gt;
&lt;cfreturn getJ&gt;
&lt;/cffunction&gt;
&lt;/cfcomponent&gt;&lt;/code&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;get.cfm&lt;/span&gt;
&lt;code&gt;&lt;html&gt;
&lt;head&gt;
&lt;cfajaximport&gt;
&lt;invalidTag&gt;
function submitForm() {
ColdFusion.Ajax.submitForm(&apos;myform&apos;, 1,  &apos;formAction.cfm&apos;, 1,  callback,
errorHandler);
}
function callback(text)
{
document.getElementById(&quot;divShowMsg&quot;).innerHTML = text;
}
function errorHandler(code, msg)
{
alert(&quot;Error!!! &quot; + code + &quot;: &quot; + msg);
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;divShowMsg&quot;&gt;&lt;/div&gt;
&lt;cfform name=&quot;myform&quot;&gt;
&lt;cfinput name=&quot;mytext1&quot; size=&quot;50&quot;&gt;
&lt;input type=&quot;Button&quot; onclick=&quot;submitForm()&quot; value=&quot;WebServices JSON &quot;&gt;
&lt;/cfform&gt;
&lt;/body&gt;
&lt;/html&gt;&lt;/code&gt;
&lt;span style=&quot;text-decoration: underline;&quot;&gt;formAction.cfm&lt;/span&gt;
&lt;code&gt;&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;cfinvoke webservice=&quot;http://localhost/webservices/getJSON.cfc?wsdl&quot; method=&quot;jsonData&quot; returnvariable=&quot;strg&quot;&gt;
&lt;cfinvokeargument name=&quot;Text&quot; value=&quot;#form.mytext1#&quot; /&gt;
&lt;/cfinvoke&gt;
&lt;cfdump var=&quot;#strg#&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;&lt;/code&gt;&lt;/p&gt;
				
				</description>
				
				
				<category>Ajax</category>
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>jSON</category>
				
				<category>WebServices</category>
				
				<category>CF Tag</category>
				
				<pubDate>Thu, 26 Nov 2009 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2009/11/26/coldfusion-webservices-and-json</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>JSON (JavaScript Object Notation)</title>
				<link>http://www.ppshein.net/index.cfm/2009/10/9/json-javascript-object-notation</link>
				<description>
				
				JSON, called Javascript Object Notation is being used for integrating computer systems based on XML and WDDX. If using JSON with CFM, you don&apos;t need to do much because CFC can output json data.


&lt;code&gt;
&lt;!--- Send an http request to the Yahoo Web Search Service. ---&gt;
&lt;cfhttp url=&apos;http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=YahooDemo&amp;amp;query=&quot;ColdFusion Ajax&quot;&amp;amp;output=json&apos;&gt;
&lt;!--- The result is a JSON-formatted string that represents a structure.
Convert it to a ColdFusion structure. ---&gt;
&lt;cfset myJSON=DeserializeJSON(#cfhttp.FileContent#)&gt;
&lt;!--- Display the results. ---&gt;
&lt;cfoutput&gt;

Results of search for &quot;ColdFusion 8&quot;

There were #myJSON.ResultSet.totalResultsAvailable# Entries.

Here are the first #myJSON.ResultSet.totalResultsReturned#.

&lt;cfloop index=&quot;i&quot; from=&quot;1&quot; to=&quot;#myJSON.ResultSet.totalResultsReturned#&quot;&gt;
	&lt;a href=&quot;#myJSON.ResultSet.Result[i].URL#&quot;&gt;
		#myJSON.ResultSet.Result[i].Title#
	&lt;/a&gt;
	#myJSON.ResultSet.Result[i].Summary#
&lt;/cfloop&gt;
&lt;/cfoutput&gt;
&lt;/code&gt;

Read more &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_09.html#1127085&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;
				
				</description>
				
				
				<category>jQuery</category>
				
				<category>Ajax</category>
				
				<category>Coldfusion</category>
				
				<category>jSON</category>
				
				<category>Javascript</category>
				
				<category>CF Tag</category>
				
				<pubDate>Fri, 09 Oct 2009 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2009/10/9/json-javascript-object-notation</guid>
				
				
			</item>
			
		 	
			</channel></rss>