On a VM server with Windows server 2008 R2 installed and IIS setup.
I have a classic ASP website developed it works fine on other IIS servers, yet on this server javascript will not run.
I have serached high and low and found almost nothing on this issue.
Please i know javscript is clentside i should not depend on the server, but in this case it is the issue.
I have diagnosed all posiblities tried several browsers and all get the same error.
I have made simlple test page to demonstarte.
If the code bellow executes correctly the loading DIV should not be displayed, yet it is on this server.
Solutions i have tried:
Reinstalled IIS serveices: Did not work.
Set the dfault application pool to allow 32bit applications: Did not work.
Please any help would be appreciated.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JS TEST</title>
</head>
<body onload="toggle();">
TESTING!!!
<div id="divLoading" runat="server" style="text-align: center" style="display: block">
<br /><br /><br /><br />
<span style="font-size: 10pt; font-family: Verdana">
[Should Be hidden...]
</span>
<br />
<img src="images/bar-circle.gif" alt="Loading..." /><br />
</div>
</body>
<script>
function toggle() {
var ele = document.getElementById("divLoading");
if(ele.style.display == "block") {
ele.style.display = "none";
}
else {
ele.style.display = "block";
}
};
</script>
</html>