Cannot get java script to display on web page

jmcg

New Member
Joined
Feb 22, 2012
Messages
1
I have an 2008 r2 server that has iis 7 installed on it. The server hosts a webapp that works perfectly fine. The problem is that a plan ordinary web page with a java script does not work. I can take the directory and copy it to a Windows 7, a Mac osx, win xp or a plan ordinary win 2008 r2 server (without IIS installed) and if I load the webpage from a browser on any of those machines the java script displays the changing jpg's correctly. On the server with IIS installed all I see is a white box with three dots that blink (not quit flashing). the java script is bannerad3.js. I am sure that it is something simple, but can't figure it out.

I even tested loading the web page from the root of c: (taking it out of the inetpub/wwwroot directory) using just the browser and I still get the white box with the 3 blinking dots.
 
Never seen this problem. Maybe this is a java applet and you don't have the java sdk installed on the server?
 
If your JavaScript is in an external file make sure that your web page is pointing to the correct URL and make sure that the permissions at that URL are set so anyone can access it. Make sure JavaScript is enabled in your clients browser. Make sure that your IIS configuration includes a *.js mime type so your server knows how to correctly serve the JavaScript file to clients.
A great program for debugging web sites is Charles.
http://charlesproxy.com
 
Back
Top