Hey all,
OK, this started out as a perl problem and now I think it's an HTML / JS problem. I have some Perl code that, essentially, does what this little HTML code does here. Both are not working. I cannot get the refresh to execute. Please tell me why:
OK, this started out as a perl problem and now I think it's an HTML / JS problem. I have some Perl code that, essentially, does what this little HTML code does here. Both are not working. I cannot get the refresh to execute. Please tell me why:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="5; URL=http://rhlwebsvr/ftpLogin.shtml">
<title>Untitled Document</title>
<script language="javascript">
function delayDownload() {
var fileName = "myFile.zip";
fullURL = "[URL unfurl="true"]http://rhlwebsvr/images/"[/URL] + fileName;
window.setTimeout("processDownload(fullURL)", 2000);
}
function processDownload(fullURL) {
location.href = fullURL;
}
</script>
</head>
<body onLoad="delayDownload()">
BLAH BLAH BLAH
</body>
</html>