Marcelo
11-12-2003, 11:21 AM
My problem is the following:
- I use IIS under Windows 2000 Server and the service packs are updated.
- I have an asp file that links a .js file.
<script language="Javascript" src="../../funcoes.js"></script>
- When I open the file from my machine (using an editor), it's ok.
- When I open the file from the browser (http://www.x.com/funcoes.js) it comes with a lot of garbage. Some asp codes comes inside the .js file, so when I open the page it returns a "syntax error".
- I Tried to put the scripts inside the asp file and it's ok, the problem only occurs when it's on a external .js file.
- If I'm using apache I can't put the file in the cgi-bin folder, but in this case it's a IIS under Windows 2000.
- I can't reinstall the IIS now because it belongs to a costumer.
- This problems is really a "big problem"...
Thanks for any help.
- I use IIS under Windows 2000 Server and the service packs are updated.
- I have an asp file that links a .js file.
<script language="Javascript" src="../../funcoes.js"></script>
- When I open the file from my machine (using an editor), it's ok.
- When I open the file from the browser (http://www.x.com/funcoes.js) it comes with a lot of garbage. Some asp codes comes inside the .js file, so when I open the page it returns a "syntax error".
- I Tried to put the scripts inside the asp file and it's ok, the problem only occurs when it's on a external .js file.
- If I'm using apache I can't put the file in the cgi-bin folder, but in this case it's a IIS under Windows 2000.
- I can't reinstall the IIS now because it belongs to a costumer.
- This problems is really a "big problem"...
Thanks for any help.