主题: 批量上传后怎样将值同时保存在隐藏到表单
作者: 老谢, 发布日期: 2013-01-17 23:07:30, 浏览数: 2641

<!doctype html>
<html>
 <head>
  <title>MultiImageDialog Examples</title>
  <link rel="stylesheet" href="../editor/themes/default/default.css" />
 <script charset="gb2312" src="../editor/kindeditor.js"></script>
 <script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
  <script>
   KindEditor.ready(function(K) {
    var editor = K.editor({
    cssPath : '../editor/plugins/code/prettify.css',
    uploadJson : '../editor/asp/upload_json.asp',
    fileManagerJson : '../editor/asp/file_manager_json.asp',
     allowFileManager : true
    });
    K('#J_selectImage').click(function() {
     editor.loadPlugin('multiimage', function() {
      editor.plugin.multiImageDialog({
       clickFn : function(urlList) {
        var div = K('#J_imageView');
        div.html('');
        K.each(urlList, function(i, data) {
         div.append('<img src="' + data.url + '" height="100">');
        });
        editor.hideDialog();
       }
      });
     });
    });
   });
  </script>
 </head>
 <body>
    <form name="form1" method="post" action="receive.asp"> 
  <input type="button" id="J_selectImage" value="批量上传" />
  <div id="J_imageView"></div>
<input type="hidden" name="DivContent" id="DivContent">
<br><br> 
<input type="submit">
</form> 
<script language="JavaScript"> 
<!-- 
form1.DivContent.value = document.all("J_selectImage").innerHTML;
--> 
</script> 

 </body>
</html>

我是想把批量上传的内容提交到数据库

作者: 小浪子, 发布日期: 2013-01-18 11:14:01
代码里面的:
var div = K('#J_imageView');
        div.html('');
        K.each(urlList, function(i, data) {
         div.append('<img src="' + data.url + '" height="100">');
        });
自己看着改,不再回复。
回复
作者: 老谢, 发布日期: 2014-07-29 11:14:33
怎么改,怎么让上传后表单里可以同时得到数据
回复
发表新帖 发表回复