您的位置:首页 > Web前端 > JavaScript

多附件上传组件代码(Add and Remove HTML elements dynamically with Javascript)

2005-11-17 09:23 483 查看
Nov 17. 2005

In th e past two days, I finished the function of multiple file selection using javascript.

The implementation is built on the basis of reference (2). However, i encounter the following error when using it.

"mFile.children.value is null or not a object"

I solved this problem by changing it to

"mFile.children[j].value"

Another improvement is the addition of the mini popup window showing the full path appearing in the HTML INPUT element
. Without the popup window, part of a long path will be hidden. some code snippets (javascript functions) are from reference (3)

1. http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/
2. http://www.yinhuchem.com/tree/gbook/blogview.asp?logID=26&cateID=2 3 .http://evget.com/articles/evget_1107.html (可编辑的 HTML JavaScript 表格控件 DataGrid)
4. 如何接收INPUTfield 的值 INPUT type=file Element | input type=file Objecthttp://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/input_file.asp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: