【发布时间】:2015-04-14 01:51:05
【问题描述】:
我正在尝试在 jQuery 对话框中打开 Dropzone 上传控件,它正在显示表单,但我无法在其中放置任何图像。
这是dropzone控件的代码:
<link rel="stylesheet" type="text/css" href="../../Content/dropzone.css" media="screen" />
<script type="text/javascript" src="<%= Url.Content("~/Scripts/dropzone.js") %>\"></script>
<form action='/file-upload' class='dropzone' id='my-awesome-dropzone'></form>
以及构建 jQuery 对话框的代码:
dialogObj = $("#_dialogPanel").dialog({
autoOpen: false,
resizeable: true,
position: { my: "center-100 bottom-40", at: "center center" },
stack: true,
height: 'auto',
width: 'auto',
modal: true
});
使用.html() 属性将控件分配给对话框
【问题讨论】:
-
小提琴会很有帮助..
标签: javascript jquery html jquery-ui-dialog dropzone.js