Hallo everybody, we are facing the following problem: we want to provide an input element of type file with a default value that should be displayed by default (actually it is the current value of a specific attribute). While the value-property is read only in IE5-6, we tried to set the defaultValue-property through script: var oInput = document.createElement("INPUT"); oInput.type = "file"; oInput.defaultValue = _someValue_; oParent.appendChild(oInput); Unfortunately, the default value is not displayed. The documentation states, that changing the defaultValue has no effect until a form was reseted, but in our test case this did not happened. Does anybody know, how to force a file input element to show an initial value or does somebody has a workaround for this? Cheers, Robert TanevReceived on Thursday, 14 February 2002 08:32:02 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:59:15 GMT