"McKirahan" <News@McKirahan.comwrote in news:DeudnXL4
_bBzd8bYnZ2dnUVZ_vadnZ2d@comcast.com:
Quote:
Has anyone experienced this (and found a solution)?
>
I have five files: a .htm that invokes four .js include files.
>
Only the first alert in the first include is displayed.
>
This only happens when I run on a client's corporate server.
>
I have no problems on a laptop connected to the network
or on my home PC. Any ideas? Thanks in advance.
>
>
<html>
<head>
<title>test_js.htm</title>
</head>
<body>
<script type="text/javascript" src="test_js.js"></script>
<script type="text/javascript" src="test_js.js1"></script>
<script type="text/javascript" src="test_js.js2"></script>
<script type="text/javascript" src="test_js.js3"></script>
</body>
</html>
>
alert("test_js.js");
>
alert("test_js.js1");
>
alert("test_js.js2");
>
window.onload = function() {
alert("test_js.js3");
}
>
I moved the includes into the head;
I took out the last include;
it still fails on one server.
>
I'm stumped.
>
If I merge them into one include it works.
Easy to try:
Create four html files on the server, each with only one js include.
<body>
<script type="text/javascript" src="test_js.js"></script>
</body>
<body>
<script type="text/javascript" src="test_js.js1"></script>
</body>
<body>
<script type="text/javascript" src="test_js.js2"></script>
</body>
<body>
<script type="text/javascript" src="test_js.js3"></script>
</body>
Try each html file. Do they all work?
P.S. You can name your files any way you like, but wouldn't test_js1.js
be more logical than test_js.js1?