<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oinam&#039;s Blog &#187; Ajax</title>
	<atom:link href="http://blog.oinam.com/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oinam.com</link>
	<description>All about Oinam</description>
	<lastBuildDate>Fri, 17 Oct 2008 11:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>23HQ, The Flash 8 Multiple Photo Upload Feature</title>
		<link>http://blog.oinam.com/2006/23hq-the-flash-8-multiple-photo-upload-feature/</link>
		<comments>http://blog.oinam.com/2006/23hq-the-flash-8-multiple-photo-upload-feature/#comments</comments>
		<pubDate>Thu, 09 Feb 2006 18:37:44 +0000</pubDate>
		<dc:creator>Brajeshwar</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[23hq]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[filereference]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.oinam.com/__blog/?p=18</guid>
		<description><![CDATA[Flash, FileReference, Multiple File Upload in Flash, Ajax]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.23hq.com/" title="23hq">23hq</a> is a web application which makes it easy to share your digital photos. They have tried to put together a mix of old and brand new ways of sharing stuff. You can share your photos via the web or with prints. You can share with blogs, use mail or subscription-based sharing and more. Share your photos with whom you want, private or public or both.</p>

<p>Recently <a href="http://www.23hq.com/" title="23hq">23hq</a> contacted us so they can implement the <a href="http://blog.oinam.com/2005/flash-8-file-upload-download/" title="multiple file upload">multiple file upload</a> feature of Flash Player 8. Finally, the result is a cool way of provinding the users the ability to upload single or multiple photo uploads and at the same time allowing them to preview uploaded photos, tag them while the remaining at still being uploaded. You will be experiencing the cool combination of Flash and <a href="http://www.adaptivepath.com/publications/essays/archives/000385.php" title="Ajax">Ajax</a>.</p>

<p><a href="http://www.23hq.com/" title="23hq">23hq</a> have a an article describing their new feature in details, <a href="http://blog.23hq.com/articles/2006/02/07/flashy-uploading/" title="Flashy Uploads">Flashy Uploads</a>. Test out their <a href="http://www.23hq.com/23/redirect/photo/upload-flash" title="Upload Feature">Upload Feature</a> or keep a tap of their discussion on the <a href="http://www.23hq.com/forums/message-view?message%5fid=397908" title="Multiple file upload with Flash">topic</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.oinam.com/2006/23hq-the-flash-8-multiple-photo-upload-feature/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AjaxCFC &#8211; the Client Side</title>
		<link>http://blog.oinam.com/2006/ajaxcfc-the-client-side/</link>
		<comments>http://blog.oinam.com/2006/ajaxcfc-the-client-side/#comments</comments>
		<pubDate>Thu, 02 Feb 2006 10:02:02 +0000</pubDate>
		<dc:creator>Manaswinee</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.oinam.com/__blog/?p=17</guid>
		<description><![CDATA[Ajax, ColdFusion, Javascript, AjaxCFC]]></description>
			<content:encoded><![CDATA[<p>As promised, here is a quick rundown of the client side part of <a href="http://blog.oinam.com/archives/2006/01/ajaxcfc/" title="AjaxCFC">AjaxCFC</a>.</p>

<p>The first part in the client side of AjaxCFC is to include the javascript files.</p>

<pre><code language="java">_ajaxConfig = {'_cfscriptLocation':'echoTest.cfc', '_jsscriptFolder':'js'};</code></pre>


<p><code>_ajaxConfig</code> will store the location of the listener <span class="caps">CFC </span>and location of the &#8220;js&#8221; folder which is included in the ajax.zip file that comes with AjaxCFC. The use of <code>_cfscriptLocation</code> variable is optional as you may specify the <span class="caps">CFC </span>location directly in the Ajax call.</p>

<p>You will have an ajax calling function and a call-back function; however, none of them are mandatory, because depending on your needs you may not need to know the result of your call, or you may not need to enclose your ajax call in a function.</p>

<p><span id="more-17"></span><br />
To invoke an ajax component you need to use <code>DWREngine._execute</code> which my colleague, Ashish has already <a href="http://blog.oinam.com/2006/ajaxcfc/" title="AjaxCFC">explained</a>.</p>

<p>The call-back function will always take one argument, which is the return of the method called within the <span class="caps">CFC </span>object.</p>

<p>AjaxCFC will allow you to return almost all simple or complex object to the JavaScript callback function: <em>strings, numbers, arrays, structures and queries</em>.</p>

<p>We have a preferance of structures over the other objects. The callback function will always take one argument, which is the return value of the invoked CF function.</p>

<p>The JavaScript function will receive the number or string just like any regular JavaScript call.</p>

<p>To retrieve the recordcount, you can loop your data through a built-in function, <code>result.getRowCount()</code>,&#8195;which will return the equivalent to <code>query.recordcount</code>. You can always use <code>sDumper(result)</code> to show you exactly what is being sent back to your handler.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.oinam.com/2006/ajaxcfc-the-client-side/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AjaxCFC</title>
		<link>http://blog.oinam.com/2006/ajaxcfc/</link>
		<comments>http://blog.oinam.com/2006/ajaxcfc/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 21:05:04 +0000</pubDate>
		<dc:creator>Ashish</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.oinam.com/__blog/?p=14</guid>
		<description><![CDATA[ColdFusion, Ajax, AjaxCFC, Rob Gonda]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.robgonda.com/blog/projects/ajaxcfc/" title="AjaxCFC">AjaxCFC</a> is an <a href="http://www.adaptivepath.com/publications/essays/archives/000385.php" title="Ajax">Ajax</a> Framework for ColdFusion from <a href="http://www.robgonda.com/blog/" title="Rob Gonda">Rob Gonda</a>. Well, my reaction after going through it was <strong><span class="caps">AWESOME</span></strong> and huge thanks to it, lately have been able to finish up a small Messaging System integrated inside one of a Rich Internet Application, <a href="http://www.livespeeddating.com/" title="Live Speed Dating">Live Speed Dating</a>.</p>

<p>With AjaxCFC, a generic ColdFusion Component using the facade pattern was created which contains all the methods for the Messaging System. It made it so easy for me that I had to just take care of the functionality of a single method; <code>DWREngine._execute()</code> with the respective arguments. This is the method which handles passing of the data and also the method calls to ColdFusion. The arguments required are also quite simple and easy even for a newbie to understand.<br />
<span id="more-14"></span><br />
Looking at the method signature of the function;</p>

<pre><code language="cf">DWREngine._execute(_ajaxConfig.cfscriptLocation, null, ‘CFmethodName’, args, callBackFunction);</code></pre>

<p>Though you can pass multiple arguments, my preference is to use a value object instead. Let us look at some points in respect to the particular Module of the <span class="caps">RIA </span>which I am currently working.</p>


<ol>
<li>The _ajaxConfig.cfscriptLocation is the actual path to the <span class="caps">CFC </span>which contains the methods I need to call for my mailing system.</li>
<li>The second argument is the script name to be executed. This argument is null most of the times.</li>
<li>The CFmethodName is the name of the method you want to call from the <span class="caps">CFC.</span></li>
<li>The fourth parameter to this function is the arguments you wish to pass to the CFmethod. You can pass more than one arguments or even a value object.</li>
<li>The callBackFunction is the function in JavaScript in your <span class="caps">CFM </span>which will always take a single argument which is the return result you get from your <span class="caps">CFC.</span></li>
</ol>



<p>Well, the bottomline is that in order to use our <span class="caps">CFC </span>with the <a href="http://www.robgonda.com/blog/projects/ajaxcfc/" title="AjaxCFC">AjaxCFC</a> framework, all I had to do was extend my <span class="caps">CFC </span>to the ajax.cfc which comes along with the framework.</p>

<p>Implementing AjaxCFC into my application, not only made things faster and easier for me but also enriched the end user experience for our module, the Messaging System. Thanks to <a href="http://www.robgonda.com/blog/" title="Rob Gonda">Rob Gonda</a>, now I am looking forward to incorporate AjaxCFC with the <a href="http://www.model-glue.com/" title="Model-Glue">Model-Glue</a> framework which I have used for <a href="http://www.livespeeddating.com/" title="Live Speed Dating">Live Speed Dating</a>. </p>

<p><em>Note:</em><br />
The client side part of AjaxCFC was tackled by one of my colleague, Manaswinee. She will very soon be having an article on the same. Keep an eye on her article to get an insight on the callback functions and how the data is handled at the client side.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.oinam.com/2006/ajaxcfc/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
