I am creating file inputs ad-hoc. However, the name I specify is not 'sticking'. The inputs that I create at design time behave with the name attribute appropriately.
note: the variable filesrc is passed into the routine as something like "testdoc2"
In the script debugger, when I debug.print thisFile.name, it returns "testdoc2" properly. However, when I debug.print thisFile.outerHTML, I can see that there is no name attribute in it, as opposed to the inputs created at design time. Am I using the wrong attribute?
Thanks in advance.
Kate
[small]"The Distorted View"
-the only podcast that's fresh perked
www.distortedview.com[/small]
note: the variable filesrc is passed into the routine as something like "testdoc2"
Code:
thisFile = document.createElement("input");
thisFile.type = "file";
thisFile.name = filesrc;
docTab.nextSibling.appendChild(thisFile);
In the script debugger, when I debug.print thisFile.name, it returns "testdoc2" properly. However, when I debug.print thisFile.outerHTML, I can see that there is no name attribute in it, as opposed to the inputs created at design time. Am I using the wrong attribute?
Thanks in advance.
Kate
[small]"The Distorted View"
-the only podcast that's fresh perked
www.distortedview.com[/small]