I set up an apache server on gentoo, I want to be able to run javascript code in my html files served by apache.
If I manually open up the html file that lives on the apache server in Chrome, the javascript works fine. If I browse to the html file using the server address via apache, it does not execute. This is my test html, it's very simple:
<html>
<h2>js test</h2>
<script>
alert("Hey");
</script>
</html>
I haven't ever seen this behavior before. Any ideas?
EDIT: What I mean by opening manually and using the server address is this:
file:///mnt/server/path/to/file.html (opening manually)
http://server/path/to/file.html (browsing to apache server)
EDIT 2: No errors in apache's error_log. At first I was using jquery to try to do some ajax stuff, but I tried to simplify everything to the max for this question.