jquery uploadify 插件上传图片问题
选中图片后,老是提示未指明的错误,调试进去是instance.CallFunction()这个方法不存在,不知为什么?请高手指点我使用网站的端口不是80 --------------------编程问答--------------------
这个没法给你判断。。只能说你写的有问题。。。看别人写的示例。。。 --------------------编程问答-------------------- 我就是参考网上写的,代码如下
<head>
<title>上传图片</title>
<link href="/js/jquery.uploadify-v2.1.4/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.uploadify-v2.1.4/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.uploadify-v2.1.4/swfobject.js"></script>
<script type="text/javascript" src="/js/jquery.uploadify-v2.1.4/jquery.uploadify.v2.1.4.js"></script>
</head>
<body>
<div id="fileQueue">
</div>
<script type="text/javascript">
$(function() {
$('#uploadify').uploadify({
'uploader': '/js/jquery.uploadify-v2.1.4/uploadify.swf',
'script': 'http://172.16.18.9:87/HotelInfo/UploadHandler.ashx',
'cancelImg': '/js/jquery.uploadify-v2.1.4/cancel.png',
'folder': '/UploadFile',
'multi': true,
'auto': false,
'fileExt': '*.jpg;*.gif;*.png',
'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
'queueID': 'fileQueue',
'queueSizeLimit' : 3,
'simUploadLimit' : 3,
'removeCompleted': false,
'onSelectOnce' : function(event,data) {
$('#status-message').text(data.filesSelected + ' files have been added to the queue.');
},
'onAllComplete' : function(event,data) {
$('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');
}
}); });
</script>
<input type="file" name="uploadify" id="uploadify" />
<p>
<a href="javascript:$('#uploadify').uploadifyUpload()">上传</a>| <a href="javascript:$('#uploadify').uploadifyClearQueue()">
取消上传</a>
</p>
</body> --------------------编程问答-------------------- <link href="/js/jquery.uploadify-v2.1.4/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.uploadify-v2.1.4/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.uploadify-v2.1.4/swfobject.js"></script>
<script type="text/javascript" src="/js/jquery.uploadify-v2.1.4/jquery.uploadify.v2.1.4.js">
jquery 文件哪去了?
查看是否缺少引用的js文件
补充:.NET技术 , ASP.NET