<--- --------------------------------------------------------------------------------------- ---- Blog Entry: ColdFusion, jQuery, And "AJAX" File Upload Demo Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:1244.view Date Posted: May 28, 2008 at 4:05 PM ---- --------------------------------------------------------------------------------------- ---> // When the DOM loads, initailize the form to upload the files // using an AJAX "like" call rather than a form submit. $( function(){ // Get a reference to the form we are going to be // hooking into. var jForm = $( "form:first" ); // Attach an event to the submit method. Instead of // submitting the actual form to the primary page, we // are going to be submitting the form to a hidden // iFrame that we dynamically create. jForm.submit( function( objEvent ){ var jThis = $( this ); // Create a unique name for our iFrame. We can // do this by using the tick count from the date. var strName = ("uploader" + (new Date()).getTime()); // Create an iFrame with the given name that does // not point to any page - we can use the address // "about:blank" to get this to happen. var jFrame = $( "