简体   繁体   中英

uploadify - no response from coldfusion

I have a problem, with uploadify. when using upload.php and echo "hello" I get a response. When changing to upload.cfm and hello I get nothing, no reponse. Any ideas what I can do to get a response from CF.

upload.php

<?php

echo "hello";

?>

upload.cfm

<cfoutput>hello</cfoutput>

$(document).ready(function() { 


 $('#newsImage').uploadify({ 
  'uploader':  '../uploadify/uploadify.swf', 
  'script':    'upload.cfm', 
  'wmode': 'transparent',
  'auto': 'true',
  'width': '100',
  'folder':    'uploads', 
  'cancelImg': '../uploadify/cancel.png',


  'onComplete' :
      function(event, queueID, fileObj, response, data) {


   if(response == "hello") {

   $('#mydiv').html("hello");
   }

     }

}); 
}); 

take a look in this link

very useful and you can make a multiple upload. regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM