Solved

Javascript not working NOW in Windows Server 2008 / IIS 7.0

Posted on 2009-05-18
2
1,799 Views
Last Modified: 2012-05-07
I have an web application hosted under Windows Server 2008/IIS 7.0, few days back javascript used to work on a webpage control but now it has stopped working. Javascript still works if I run the same application and in the same environment (server 2008/IIS 7.0), when running the application in debug mode. But as soon as I publish the site, it doesn't work. I tried to put a break point (debugger;), but it doesn't come over there. Any idea why the javascript works when running the application in Visual Studio 2008 debug mode and DOES NOT run when the same code is published. I have attached code also.

Thanks,
Ammar
0
Comment
Question by:ammarg110
2 Comments
 
LVL 37

Accepted Solution

by:
meverest earned 50 total points
ID: 24421680
Hi,

javasript is a client side code - if it doesn't work, then there is something preventing the client to access the script.  How is the javascript implemented? probably something like:

<javacript src="path/script.js"/>

in which case make sure that 'path' exists on the server, and that 'script.js' exists in that path.

Cheers!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question