jaschulz — 2010-03-10T07:03:36-05:00 — #1
I have created a simple form for uploading text files. You can see two versions of it at:
I am too new to post a link in this forum, but you can see examples of the form at wiseware dot com slash test.
Can anyone help me understand what is going on here?
jaschulz — 2010-03-10T08:13:20-05:00 — #2
The <body> is there in the HTML. It includes the onload="initialize();" that builds the page. I don't think another <body> would be a good idea.
csu_bill — 2010-03-10T08:15:08-05:00 — #3
I did a recheck and saw that, and deleted my message since it had no useful information. Sorry for my mistake.
jaschulz — 2010-03-10T09:30:50-05:00 — #4
It turns out that a bug in IE precludes specifying the "name" attribute dynamically. The only workaround is this ugly business:
var b = document.getElementsByTagName('body');
b.innerHTML = '<div id="uploadDiv" style="width: 500px; padding: 5px; margin-bottom: 5px; border: 1px solid #3333FF;">'+
'<form id="uploadForm" action="upload.php" method="post" enctype="multipart/form-data">'+
'<input id="uploadInput" type="file" name="uploadFile">'+
'<input type="submit" value="Submit">'+
If anyone knows of a less ugly solution, I would be glad to hear about it.
crmalibu — 2010-03-10T10:33:05-05:00 — #5