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

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

posted on 2005-11-17 09:23  cy163  阅读(781)  评论(0编辑  收藏  举报

导航