|
 |
aspx thread: js include syntax error?
Message #1 by Philo <philo@r...> on Sun, 14 Jul 2002 14:13:42 -0400
|
|
I have an HTML file with a
<script language="javascript" src='file.js"></script>
tag
The file opens fine if I double-click on it. It runs fine on another server
(Win2k Server), but on my machine (Win2k AS) I get a syntax error on the
last line of the script file if I try to open it via localhost.
I'm sure the issue has to do with my IIS configuration, but I've checked
and double-checked the settings of the two machines against each other and
can't find anything critical. I've added .js to the mime types - no luck.
Has anyone seen this? Any ideas on where to look to troubleshoot?
TIA,
Philo
Message #2 by Philo <philo@r...> on Mon, 15 Jul 2002 09:43:03 -0400
|
|
At 02:13 PM 7/14/2002 -0400, Philo wrote:
>I have an HTML file with a
><script language="javascript" src='file.js"></script>
>tag
>
>The file opens fine if I double-click on it. It runs fine on another
>server (Win2k Server), but on my machine (Win2k AS) I get a syntax error
>on the last line of the script file if I try to open it via localhost.
>
>I'm sure the issue has to do with my IIS configuration, but I've checked
>and double-checked the settings of the two machines against each other and
>can't find anything critical. I've added .js to the mime types - no luck.
>
>Has anyone seen this? Any ideas on where to look to troubleshoot?
By the way, the answer on this was to change the file name and point the
tag to the new file - looks like IIS was caching the .js file somehow.
Philo
Message #3 by "Immanuel L'Heureux" <Immanuel_L'Heureux@c...> on Fri, 19 Jul 2002 00:12:35
|
|
>
I have an HTML file with a
<script language="javascript" src='file.js"></script>
tag
The file opens fine if I double-click on it. It runs fine on another
server
(Win2k Server), but on my machine (Win2k AS) I get a syntax error on the
last line of the script file if I try to open it via localhost.
I'm sure the issue has to do with my IIS configuration, but I've checked
and double-checked the settings of the two machines against each other and
can't find anything critical. I've added .js to the mime types - no luck.
Has anyone seen this? Any ideas on where to look to troubleshoot?
TIA,
Philo
If you copied this directly from your source code :
<script language="javascript" src='file.js"></script>
then the problem is your src='file.js" ... should be src='file.js'
|
|
 |