- 注册时间
- 2013-9-15
- 最后登录
- 2013-9-15
- 阅读权限
- 10
- 积分
- 5
- 精华
- 0
- 帖子
- 1
|
<body>
<div id="form1" name ="form1" method="post" enctype="multipart/form-data">
<table>
<tr><td>文件名:</td><td><input class="mini-textbox" id="title" name="title"> <br/></td></tr>
<tr><td> 图片: </td><td><input id="fileupload1" class="mini-fileupload" name="path" limitType="*.*"
flashUrl="swfupload/swfupload.swf"
/>
</td></tr>
<tr><td> <input type="button" value="添加"></td></tr>
</table>
</div>
<script type="text/javascript">
mini.parse();
function submitForm() {
var form = new mini.Form("#form1");
var data = form.getData();
/* form.validate(); */
/* if (form.isValid() == false) return; */
//form.setData(["txc":"txc"]);
mini.alert("++++"+data);
var json = mini.encode(data);
mini.alert("-----"+json);
$.ajax({
url: "productAction!addProduct.do",
data: "param="+ json ,
type: "post",
success: function (obj) {
if(obj.msg=="success"){
}
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.responseText);
}
});
}
path d的值为空
|
|