开发者

uploadify response with coldfsuion

I am trying to use uploadify with coldfusion, the problem i am having is with my response. My upload2.cfm file is simply hello. So I should in theory just get 'hello' in my #newsImageHolder div. What I do get is the whole html of the current page.

Thanks for any help.

R.

 <sc开发者_Python百科ript>

 $(document).ready(function() { 


 $('#newsImage').uploadify({ 
  'uploader':  '../uploadify/uploadify.swf', 
  'script':    'upload2.cfm', 
  'wmode': 'transparent',
  'auto': 'true',
  'width': '100',
  'folder':    '/', 
  'cancelImg': 'cancel.png',
  'onComplete' :
      function(event, queueID, fileObj, response, data) {

            $('div#newsImageHolder').html(response);


      }

}); 
}); 


 </script>


Is 'script': 'upload2.cfm', definitely pointing to the right script?

Is there any chance it should be 'script': '/upload2.cfm',?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜