最新版的 uploadify 3.2 是不是能结合JQUERY 的dialog使用?
我是吧uploadify放在jquery的dialog内,点“上传图片”再弹出
<input type="button" id="uploadimage" value="上传图片" />
<div id="oDIVUploadFile" title="菜品图片上传" style="display:none">
<input type="file" name="upload" id="upload" />
<div id="fileQueue"></div>
</div>
$(document).ready(function () {
$('#upload').uploadify({
'formData': { 'folder': '/Uploads' },
'buttonText': '选择文件',
'buttonClass': 'browser',
'removeCompleted': false,
'swf': 'uploader/uploadify.swf', //进度条,Uploadify里面含有
'debug': false,
'height': 20,
'width': 70,
'uploader': 'uploader/UploadProcess.ashx' //一般处理程序
});
$('#oDIVUploadFile').dialog({
modal: true,
height: 300,
width: 350,
autoOpen: false,
close: function (event, ui) {
$('a.ui-dialog-titlebar-close').show();
}
});
$("#uploadimage").click(function () {
$("#oDIVUploadFile").dialog("open");
});