Q:

Making element visible in IE?

As the title says.. is there a way to get it to work with IE?
I'm using:
document.getElementById('loadingImage').style.visibility='visible';

For
<img id="loadingImage" src="images/25.gif" style="padding:0px;margin-bottom:-7px;visibility:hidden;">

But it isn't working. Thanks.
Edit:
Is is being called with list this alert then reload page IN detect file extension upload script :
function TestFileType( fileName, fileTypes ) {
if (!fileName) return;

dots = fileName.split(".")
//get the part AFTER the LAST period.
fileType = "." + dots[dots.length-1];

if (fileTypes.join(".").indexOf(fileType) != -1) {
   document.getElementById('loadingImage').style.visibility='visible';
   return true;
} else {
   alert('Please select (.w3g) file only!');
   return false;
}
}

with
<input name="replay_file" id="replay_file" type="file" accept=".w3g*"/>
<input type="submit" id="upload_file" value="Upload" name="uploadReplay" onClick="return TestFileType(this.form.replay_file.value, ['w3g','.w3g']);" />
<img id="loadingImage" src="images/25.gif" style="padding:0px;margin-bottom:-7px;visibility:hidden;">

PS: This is not a duplicate question as the others were not so related.

A:

How about these 2 changes:
replace this.form.replay_file.value with:
document.getElementById('replay_file').value

and add the missing semicolon at the end of this line:
dots = fileName.split(".");

By the way, you take the second argument of the function as an array and join it to a string. why not pass it as a string to begin with?
Moreover, out of the 2 array members, 'w3g' will never match (only '.w3g' might match) because you always look up a string that begins with a dot...
And a recommendation: be consistent with the return type. If this function is expected to return a boolean, then the first line should be changed to:
if (!fileName) return false;

