Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Google Chrome doesn't load my javascript files

Status
Not open for further replies.

JScannell

Programmer
Jan 9, 2001
306
US
This problem only exists when I run my site in Google Chrome. Either from my cellphone or my PC.

I have the following line in my <head> section. All of my .js files are stored in the javascripts folder:

<SCRIPT type = "text/javascript" src = "javascripts/common.js" ></SCRIPT>

Google chrome will not load the file!

So, I copied the common.js file into my website's home directory and renamed it to local_common.js.

I then changed my script load to this (no folder designation):

<SCRIPT type = "text/javascript" src = "local_common.js" ></SCRIPT>

And it works!!

Why??

Thanks in advance,
Jerry

Jerry Scannell
 
Holy crap. I think I figured it out. Since when is script loading case-sensitive??? The "javascripts" folder is actually "JavaScripts". On a whim, I changed my command load to:

<SCRIPT type = "text/javascript" src = "JavaScripts/common.js" ></SCRIPT>

and now it works. WTF!!!

Jerry Scannell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top