I'm having the weirdest problem. I have a web app hosted on an IIS server that won't work in IE8, which is the standard browser at this company. It works in chrome. I've also put identical files hosted on my google drive, and it works there, even in IE8. It also works when the files are just on my desktop, even in IE8.
It turns out that the problem is specifically caused by the fact that when the app is hosted on that server, javascript in IE8 won't parse strings. Here is some example code:
<!doctype html>
<html>
<body>
<script type="text/javascript">
var test='test';
console.log(test[2]);
</script></body>
</html>
That's it. The entire document. When I host this on the IIS server and open IE8's console, instead of logging s
like it should, I get
LOG: undefined
In chrome, I get s
When I host the file anywhere else, I get s
even in IE8. But when it's viewed in IE8 and hosted on this server, I get undefined. What's going on here?