works in Chrome, Firefox, Opera and Safari, but, of course, not in MSIE 8 or MSIE 8 compatibility:
<html>
<head><title>saffds</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript"> alert($);
</script>
</head>
<body>afdskakj</body></html>
MSIE claims that $ is undefined, while other browsers display the jQuery $ function.
I tried to delete all temporary files and restart MSIE by setting the Internet> Security> Local Internet to "very low", but that does not help.
The jQuery from ajax.googleapis.com worked for me a few days ago, but now I have no idea what has changed to break this.
What causes a failure?
Thank,
- Edit: I tested the following, which also does not work, except Link1, which is independent of the jQuery warning and otherfile.js, which is also independent of jQuery.
<html>
<head><title>saffds</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="otherfile.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert('I love jQuery!');
});
</script>
</head>
<body>afdskakj
<a href="" onclick="alert('Hello world')">Link1</a>
<a href="">Link2</a>
<script type="text/javascript">
$(document).ready(function() {
alert('I love jQuery!');
});
$(document).ready(function() {
$("a").click(function() {
alert("Hello world!");
});
});
</script>
</body></html>
the contents of otherfile.js is simple:
alert("otherfile");