Another "missing ; before statement" problem, but other posts have not helped me any...
OK, I have searched the forums here, and I have Googled the problem and looked at two pages worth of answers, but that has done nothing much for me.
I have a bare-bones template document as follows:
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>New Document</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
</body>
</html>
This is giving me the following:
Error: missing ; before statement
Source File: http://localhost/map/jquery.js
Line: 2442, Column: 2
Source Code:
jQuery JavaScript Library v1.4.2
^
(with an arrow pointing between the j and the q in jQuery)
Things I have tried so far (some more sane and logical than others):
- Changing Doctype (HTML 4.01 Transitional, HTML 4.01 Strict, XHTML 1.0 Transitional, XHTML 1.0 Strict and XHTML 1.1).
- Changing file extension (html and php).
- Changing content in the document (it actually started with a lot more in it, and I stripped it to bare bones trying to diagnose the problem before Googleing, and later searching here).
- Using Firebug to check out the headers, but no problems there that I can see.
- Download jQuery again (and again).
The only thing I can potentially think of right now is that I am serving the page locally using xampp, but not sure if this would cause an issue like this. Any thoughts/ideas/solutions would be much appreciated.