<?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 - Ajax</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>Sat, 25 May 2013 13:49:45 -0700</pubDate>
			<lastBuildDate>Tue, 14 Sep 2010 17:24: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>Onclick event for facebox jQuery</title>
				<link>http://www.ppshein.net/index.cfm/2010/9/14/onclick-event-for-facebox-jquery</link>
				<description>
				
				&lt;p&gt;Generally, facebox jQuery support for hyperlink attribute only. Using hyperlink for pop-up facebox dialog box isn&apos;t cool enough. That&apos;s why I&apos;m about to edit facebox jQuery javascript file for button onclick event. Follows are my change-log for facebox javascript file.
index.html
&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;
$(document).ready(function() {
$(&apos;#faceboxlink&apos;).facebox();
});
function show_facebox(getlink)
{
jQuery.facebox({ajax: getlink});
}
&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Download : &lt;a href=&quot;http://www.ppshein.net/enclosures/facebox-js1.doc&quot;&gt;facebox.js&lt;/a&gt;
You might see it&apos;s very good for all project which you want in to show facebox pop-up dialog for onclick event.&lt;/p&gt;
				
				</description>
				
				
				<category>jQuery</category>
				
				<category>Ajax</category>
				
				<category>Javascript</category>
				
				<pubDate>Tue, 14 Sep 2010 17:24:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2010/9/14/onclick-event-for-facebox-jquery</guid>
				
				
				<enclosure url="http://www.ppshein.net/enclosures/facebox-js2.doc" length="6213" type="application/msword"/>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Upload files with jQuery, Ajax and PHP.</title>
				<link>http://www.ppshein.net/index.cfm/2010/8/27/upload-files-with-jquery-ajax-and-php</link>
				<description>
				
				In these days jQuery and Ajax are so popular in web development. One of my clients told me that, they want to upload multiple files without clicking button. That&apos;s why I have had an idea to integrate jQuery, Ajax and PHP.

&lt;a title=&quot;jQuery&quot; href=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js&quot; target=&quot;_blank&quot;&gt;Download jQuery Here&lt;/a&gt;

&lt;a title=&quot;Ajax jQuery Plugin&quot; href=&quot;http://valums.com/wp-content/uploads/ajax-upload/ajaxupload.3.2.js&quot; target=&quot;_blank&quot;&gt;Download ajax jQuery plugin&lt;/a&gt;

Create Upload Button like
&lt;code&gt;
	&lt;div id=&quot;upload_button&quot;&gt;Upload&lt;/div&gt;
&lt;/code&gt;

Write following simple coding in your upload form

&lt;code&gt;
// You must create it only after the DOM is ready for manipulations
// Use $(document).ready for jquery
// document.observe(&quot;dom:loaded&quot; for prototype
new AjaxUpload(&apos;upload_button_id&apos;, {action: &apos;upload.php&apos;});
&lt;/code&gt;
Configure at Ajax Upload
&lt;code&gt;
new AjaxUpload(&apos;#upload_button_id&apos;, {
  // Location of the server-side upload script
  action: &apos;upload.php&apos;,
  // File upload name
  name: &apos;userfile&apos;,
  // Additional data to send
  data: {
    example_key1 : &apos;example_value&apos;,
    example_key2 : &apos;example_value2&apos;
  },
  // Submit file after selection
  autoSubmit: true,
  // The type of data that you&apos;re expecting back from the server.
  // Html (text) and xml are detected automatically.
  // Only useful when you are using json data as a response.
  // Set to &quot;json&quot; in that case.
  responseType: false,
  // Fired after the file is selected
  // Useful when autoSubmit is disabled
  // You can return false to cancel upload
  // @param file basename of uploaded file
  // @param extension of that file
  onChange: function(file, extension){},
  // Fired before the file is uploaded
  // You can return false to cancel upload
  // @param file basename of uploaded file
  // @param extension of that file
  onSubmit: function(file, extension) {},
  // Fired when file upload is completed
  // WARNING! DO NOT USE &quot;FALSE&quot; STRING AS A RESPONSE!
  // @param file basename of uploaded file
  // @param response server response
  onComplete: function(file, response) {}
});

&lt;/code&gt;

Add following coding in your upload form
&lt;code&gt;//You can use these methods, to configure AJAX Upload later.
var upload = new AjaxUpload(&apos;#div_id&apos;, 1, {action: &apos;upload.php&apos;});
//For example when user selects something, set some data
upload.setData({&apos;example_key&apos;: &apos;value&apos;});

//Or you can use these methods directly inside event function
new AjaxUpload(&apos;div_id&apos;, 1,  {
action: &apos;upload.php&apos;, 1, 
onSubmit: function() {
// allow only 1 upload
this.disable();
}
});
});&lt;/code&gt;

Here is server-side script, upload.php

&lt;code&gt;move_uploaded_file($_FILES[&quot;file&quot;][&quot;tmp_name&quot;],
&quot;upload/&quot; . $_FILES[&quot;file&quot;][&quot;name&quot;]);&lt;/code&gt;

Best Credit To : &lt;a href=&quot;http://valums.com/ajax-upload/&quot;&gt;http://valums.com/ajax-upload&lt;/a&gt;
				
				</description>
				
				
				<category>PHP</category>
				
				<category>jQuery</category>
				
				<category>Ajax</category>
				
				<category>Javascript</category>
				
				<pubDate>Fri, 27 Aug 2010 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2010/8/27/upload-files-with-jquery-ajax-and-php</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Ajax submitForm</title>
				<link>http://www.ppshein.net/index.cfm/2010/6/13/ajax-submitform</link>
				<description>
				
				As you know, there are a lot of Ajax UI in CF8. Among them, I love to use Coldfusion.Ajax.submitForm function. When I was on cfmx7, I need to use classic ajax coding or jQuery coding for submitting form. Once I&apos;m on cf8, adobe support me to develop ajax form submit function in just 5 mins. That&apos;s why I love CFML. Ok, let&apos;s go how to use :
If you want to develop with Ajax function, you need to put &lt;strong&gt;cfajaximport&lt;/strong&gt; tag at the top of your page.


index.cfm

&lt;code&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;cfajaximport&gt;
        &lt;invalidTag type=&quot;text/javascript&quot;&gt; 
			function submitForm() { 
			ColdFusion.Ajax.submitForm(&apos;myform&apos;, &apos;formAction.cfm&apos;, 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;
            Enter your email: 
            &lt;br&gt;
            &lt;cfinput name=&quot;txtEmail&quot; /&gt;
            &lt;cfinput name=&quot;btnSubmit&quot; value=&quot;Submit&quot; type=&quot;button&quot; onclick=&quot;submitForm()&quot; /&gt;
        &lt;/cfform&gt;
    &lt;/body&gt;
&lt;/html&gt;
&lt;/code&gt; 

for callback function It&apos;s built-in function of ajaxformsubmit and which check whether your data has been successfully reach or not. If reach, you can show any message within this scope. It always return string value. formAction.cfm 

&lt;code&gt;
&lt;cfif form.txtEmail NEQ &quot;&quot;&gt;
    &lt;cfoutput&gt;
            Your email(#form.txtEmail#) has been successfully subscribed.
    &lt;/cfoutput&gt;
&lt;cfelse&gt;
    Please enter email address.
&lt;/cfif&gt;
&lt;/code&gt;
				
				</description>
				
				
				<category>Ajax</category>
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Sun, 13 Jun 2010 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2010/6/13/ajax-submitform</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Trade Data Reporting Systems</title>
				<link>http://www.ppshein.net/index.cfm/2010/6/12/trade-data-reporting-systems</link>
				<description>
				
				&lt;img class=&quot;size-full wp-image-197&quot; title=&quot;tradedata&quot; src=&quot;http://ppshein.files.wordpress.com/2009/08/tradedata.jpg&quot; alt=&quot;Trade Data&quot; width=&quot;480&quot; height=&quot;221&quot; /&gt;

Trade data, one of my reporting systems project make me proud. Because I could do what I want to use cool tools in this project. I&apos;ve added Graph features and temp tables of CFMX7. Our client can view monthly reports, yearly report, comparison reports, by commodity reports, badget year reports, by country reports of Export and Import product. It&apos;s very good project for our client who is runing as Stock control Systems.


&lt;strong&gt;Systems :&lt;/strong&gt;
CFMX7, SQL 2005, Ajax and javascript.
				
				</description>
				
				
				<category>Project</category>
				
				<category>Ajax</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Sat, 12 Jun 2010 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2010/6/12/trade-data-reporting-systems</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>CFDiv and CFLayout</title>
				<link>http://www.ppshein.net/index.cfm/2009/12/23/cfdiv-and-cflayout</link>
				<description>
				
				&lt;p&gt;Today, I have some free spare time to learn Coldfusion Tags in my
office. That&apos;s why I decided to learn &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_j-l_01.html&quot; target=&quot;_blank&quot;&gt;CFDiv&lt;/a&gt; and &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_d-e_04.html&quot; target=&quot;_blank&quot;&gt;CFLayout&lt;/a&gt;. &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_j-l_01.html&quot; target=&quot;_blank&quot;&gt;CFDiv&lt;/a&gt; is useful for Ajax manipulation and &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_d-e_04.html&quot; target=&quot;_blank&quot;&gt;CFLayout &lt;/a&gt;is for content display. That&apos;s I&apos;ll
integrate these two tags.&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;index.cfm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;
&lt;cfform&gt;
	&lt;cflayout name=&quot;outerlayout&quot; type=&quot;vbox&quot;&gt;  
	&lt;cflayoutarea style=&quot;height:100%;&quot;&gt;      
		&lt;cflayout name=&quot;thelayout&quot; type=&quot;border&quot;&gt;           
			&lt;cflayoutarea title=&quot;Left Panel&quot; position=&quot;left&quot; closable=&quot;true&quot; collapsible=&quot;true&quot; name=&quot;left&quot; splitter=&quot;true&quot;    style=&quot;height:100%&quot;&gt;  
				&lt;cfinput name=&quot;tinput1&quot; type=&quot;text&quot;&gt;             
				&lt;input type=&quot;button&quot; value=&quot;Search&quot;&gt;           
			&lt;/cflayoutarea&gt;          
			&lt;cflayoutarea position=&quot;center&quot; style=&quot;height:100%&quot;&gt;  
				&lt;cfdiv bind=&quot;url:divsource.cfm?InputText={tinput1}&quot; ID=&quot;theDiv&quot; style=&quot;height:350&quot;/&gt;      
			&lt;/cflayoutarea&gt;     
		&lt;/cflayout&gt;      
		&lt;/cflayoutarea&gt; 
	&lt;/cflayout&gt;
&lt;/cfform&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;divsource.cfm&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;code&gt;
&lt;cfoutput&gt;   
&lt;cfif isdefined(&quot;url.InputText&quot;) AND url.InputText NEQ &quot;&quot;&gt;     
	#url.InputText# 
&lt;cfelse&gt;    
	No input   
&lt;/cfif&gt;
&lt;/cfoutput&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It stands for every messages will be displayed in the right
layout whenever type in the left layout.&lt;/p&gt;
				
				</description>
				
				
				<category>jQuery</category>
				
				<category>Ajax</category>
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>Javascript</category>
				
				<category>CF Tag</category>
				
				<pubDate>Wed, 23 Dec 2009 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2009/12/23/cfdiv-and-cflayout</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>
			
		 	
			
			
			<item>
				<title>Ajax upload with ColdFusion</title>
				<link>http://www.ppshein.net/index.cfm/2009/4/26/ajax-upload-with-coldfusion</link>
				<description>
				
				I&apos;ve once wrote file upload with flash. But I&apos;m thinking of the weak point of this program would be alright if users don&apos;t have flash player as well as using with GuestAccount. That&apos;s I need to consider how to solve this problem and want to do file upload with Ajax. Eventually, I can do it. Here is coding.

&lt;strong&gt;index.cfm&lt;/strong&gt;

&lt;code&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;AJAX File Uploader&lt;/title&gt;
&lt;invalidTag language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
&lt;!--
function startUpload(){
document.getElementById(&apos;f1_upload_process&apos;).style.visibility = &apos;visible&apos;;
document.getElementById(&apos;f1_upload_form&apos;).style.visibility = &apos;hidden&apos;;
return true;
}

function stopUpload(success){
var result = &apos;&apos;;
if (success == 1){
result = &apos;&lt;span class=&quot;msg&quot;&gt;The file was uploaded successfully!&lt;\/span&gt;&lt;br/&gt;&lt;br/&gt;&apos;;
}
else {
result = &apos;&lt;span class=&quot;emsg&quot;&gt;There was an error during file upload!&lt;\/span&gt;&lt;br/&gt;&lt;br/&gt;&apos;;
}
document.getElementById(&apos;f1_upload_process&apos;).style.visibility = &apos;hidden&apos;;
document.getElementById(&apos;f1_upload_form&apos;).innerHTML = result + &apos;&lt;label&gt;File: &lt;input name=&quot;myfile&quot; type=&quot;file&quot; size=&quot;30&quot; /&gt;&lt;\/label&gt;&lt;label&gt;&lt;input type=&quot;submit&quot; name=&quot;submitBtn&quot; class=&quot;sbtn&quot; value=&quot;Upload&quot; /&gt;&lt;\/label&gt;&apos;;
document.getElementById(&apos;f1_upload_form&apos;).style.visibility = &apos;visible&apos;;
return true;
}
//--&gt;
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form action=&quot;upload.cfm&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; target=&quot;upload_target&quot; onsubmit=&quot;startUpload();&quot; &gt;
&lt;p id=&quot;f1_upload_process&quot;&gt;Loading...&lt;br/&gt;&lt;img src=&quot;loader.gif&quot; /&gt;&lt;br/&gt;&lt;/p&gt;
&lt;p id=&quot;f1_upload_form&quot; align=&quot;center&quot;&gt;&lt;br/&gt;
&lt;label&gt;File:
&lt;input name=&quot;myfile&quot; type=&quot;file&quot; size=&quot;30&quot; /&gt;
&lt;/label&gt;
&lt;label&gt;
&lt;input type=&quot;submit&quot; name=&quot;submitBtn&quot; value=&quot;Upload&quot; /&gt;
&lt;/label&gt;
&lt;/p&gt;

&lt;invalidTag id=&quot;upload_target&quot; name=&quot;upload_target&quot; src=&quot;#&quot; style=&quot;width:0;height:0;border:0px solid #fff;&quot;&gt;&lt;/iframe&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/code&gt;

&lt;strong&gt;Upload.cfm&lt;/strong&gt;

&lt;code&gt;
&lt;cffile action=&quot;UPLOAD&quot; filefield=&quot;myfile&quot; destination=&quot;D:/test/ajaxupload/files/&quot; nameconflict=&quot;MAKEUNIQUE&quot;&gt;
&lt;cfset myfile = file.serverfile&gt;

&lt;invalidTag language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;window.top.window.stopUpload(&apos;1&apos;);&lt;/script&gt;&lt;/code&gt;
How? It&apos;s easy thought, isn&apos;t it?

Best Credit to : &lt;a title=&quot;http://www.ajaxf1.com/download.html?item=12&quot; href=&quot;http://www.ajaxf1.com/download.html?item=12&quot; target=&quot;_blank&quot;&gt;http://www.ajaxf1.com/download.html?item=12&lt;/a&gt;
				
				</description>
				
				
				<category>Ajax</category>
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Sun, 26 Apr 2009 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2009/4/26/ajax-upload-with-coldfusion</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>File upload with ColdFusion Flash Form</title>
				<link>http://www.ppshein.net/index.cfm/2009/3/11/file-upload-with-coldfusion-flash-form</link>
				<description>
				
				I was thinking about the benefit of uploading files with flash form can reduce bandwidth than using HTML file upload tag. Because upload files with flash form may have risk about the users which don&apos;t have flash player. Anyhow, I can say that uploading flash form is more faster than others like ajaxupload, java applet and so on. In this function, we can dynamically check the size of uploaded file and file type as soon as users browse. And, we can show dynamically uploading progress to user how much his/her file is being uploaded on our server. I can say uploading file with flash form have less risk than using html form upload tag.

Big Credit to :&lt;a title=&quot;http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms&quot; href=&quot;http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms&quot; target=&quot;_blank&quot;&gt; http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms&lt;/a&gt;
				
				</description>
				
				
				<category>Ajax</category>
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Wed, 11 Mar 2009 06:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2009/3/11/file-upload-with-coldfusion-flash-form</guid>
				
				
				<enclosure url="http://www.ppshein.net/enclosures/fileupload.png" length="10140" type="image/png"/>
				
				
			</item>
			
		 	
			</channel></rss>