Everything was working fine in Internet Explorer 6 but it's not in Internet Explorer 8. I will appreciate help from anybody. I want to know what I should change to make it work in IE8.
This is the code I am using in the form:
<form METHOD="POST"
ENCTYPE="multipart/form-data"
name="form1"
onSubmit="checkFileUpload(this,'GIF,JPG,JPEG',false,800,'','','','','','');return document.MM_returnValue">
This is the javascript code I am using:
<script language="JavaScript">
function checkFileUpload(form, extensions, requireUpload, sizeLimit, minWidth, minHeight, maxWidth, maxHeight) { //v2.09
document.MM_returnValue = true;
for (var i = 0; i<form.elements.length; i++) {
field = form.elements[i];
if (field.type.toUpperCase() != 'FILE') continue;
checkOneFileUpload(field, extensions, requireUpload, sizeLimit, minWidth, minHeight, maxWidth, maxHeight);
}
}
</script>
Thanks