|
Posted by the DtTvB on 06/14/06 23:40
db \/\/|20+3:
> of course i can get HTML through table.innerHTML, but there are too
> many things to change, i can not afford such a big operation.
OK, maybe you should try this:
OK, what about this one?
var content = document.getElementById('dynamiccontent');
content.innerHTML = ''
+ '<form action="..." method="post" '
+ 'enctype="multipart/form-data" id="inputform></form>';
var inputform = document.getElementById('inputform');
(We have a form in content div already, then add elements to the form.)
db \/\/|20+3:
> What the hell is wrong with setAttribute()??
I don't know, they said it should be avoided.
exefile.setAttribute('type', 'file'); // Try change thid too.
[Back to original message]
|