The following function attaches a file and then shows the updated page(along with the file) after 1 second -->
The problem is that the files are getting attached in Mozilla but not in IE .
Please help.
Code:
function attachFile() {
document.attach.act.value = "attach";
document.attach.submit();
pause(1000);
var topNum = document.getElementById('toprefid').value;
var newURL = 'taskitems.cgi?act=puchin&num='+topNum+'&numforattachment='+topNum;
window.location = newURL;
}
function pause(numberMillis) {
var now = new Date();
var exitTime = now.getTime() + numberMillis;
while (true) {
now = new Date();
if (now.getTime() > exitTime)
return;
}
}
Please help.
Comment