Feedback on: irt.org FAQ Knowledge Base Q1154
Worth:
Very worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
Cannnot get this to work!
Worth:
Very worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');
After granting priv to do this I was still unable to set the value of the FILE form element
(i.e. document.myForm.myFile.value="test" then alert(document.myForm.myFile.value) was blank {not undefined}; )
Any suggestions?
Technical:
Not technical enough
Comments:
i am doing the similar thing as explained here in NN4.7 but its not working, i think the solution suggested is not complete....
Thanks.
Comments:
Could not get this to work.
How do you do this with Internet Explorer (4.0 and above)?
Length:
Just right
Comments:
Well done..this is working...
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
What about in Internet Explorer ?
Worth:
Not worth reading
Length:
Technical:
Comments:
i have this solution for IE
function uploadNewValue(newValue)
{
var fileName = document.getElementById("filMyFile");
var lngth = fileName.value.length;
if (fileName.value.length>0)
{
var valIndex = fileName.outerHTML.indexOf("value=");
var nameIndex = fileName.outerHTML.indexOf("name=");
var strBiggin = fileName.outerHTML.substring(0,valIndex);
var strEnd = fileName.outerHTML.substring(nameIndex,fileName.outerHTML.length);
fileName.outerHTML=strBiggin+" newValue='' "+strEnd;
}
}
Worth:
Worth reading
Length:
Technical:
Comments:
Well that qualified this item as worth reading is just because of that I'm looking for such a thing. But the solution for IE mentioned by yaara seems to me that it is not working!!
Have somebody else another experience? Or does it depends on the browser version? We have here IE6.0. It is for internal application so security is not the most important issue!
Worth:
Not worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
The solution for IE does not work, and I'm guessing whoever suggested this never tested it.
When you inspect the outerHTML value of a type='file' input field, there is never any "value=" attribute,
and if you rewrite the html (with outerHTML), then reexamine the outerHTML, there is still no "value=".