
January 18th, 2013, 12:14 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 28
Time spent in forums: 5 h 2 m 41 sec
Reputation Power: 0
|
|
|
Other - Document.getElementById not working in IE9
Hi guys,
I Hope you can help with this.
Code:
file = document.getElementById('fileToUpload').files[0];
This is working fine in Chrome and MF browsers, but doesn't in IE8. I get the error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Fri, 18 Jan 2013 18:13:52 UTC
Message: 'document.getElementById(...).files.0' is null or not an object
Why?
Thx..
Kr,
C.
|