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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.css and .js not seen on server

Status
Not open for further replies.

twcman

Programmer
Jun 28, 2001
284
US
I have a css and js file refered to in my header.
<head>
<title>Untitled</title>
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;telepath.css&quot;>
<script language=&quot;JavaScript&quot; src=&quot;encounterjs.js&quot;></script>
</head>

It works fine on my system in my office, but when I upload to our ISP server, these files apparently are not seen. None of the css or js code from these files show on the page. (Yes, the files were uploaded to the ISP server).

What would cause this?

The only dumb questions are the ones that are never asked
 
What I am saying in a nutshell is that the code is in an external file that works perfectly on my local system but not on the ISP server.

URL=
do a view source to see the code.

Sorry... works only in IE. The only dumb questions are the ones that are never asked
 
never had that problem before. Is that something that is changed on the ISP server or have I done something by accident to them?
The only dumb questions are the ones that are never asked
 
Hi mate,

I did a few checks and noticed that you are running on IIS. I cannot help you with IIS as I only work with Apache but there are bound to be loads of people on here that can help.

It might be a problem in the server config and for some reason css and js files are being blocked from the browser but that is only a guess.

Sorry I can't be more help, Wullie

sales@freshlookdesign.co.uk

 
thanks for giving it a go.... The only dumb questions are the ones that are never asked
 
Could anyone else give it a go....?

The only dumb questions are the ones that are never asked
 
If you upload to an isp that configures your site for you, you may have to ask them to provide read permissions for your css and js files. I also not you are using Cold Fusion, this has its own administration tool, you may be able to sort this problem out through that if you have access to it.

Also are the css and js files in the same directory as your default page? if not try putting them in there and seeing if this sorts out the problem. The root directory should have read access otherwise you wouldnt be able to see the default page.
 
I can see the page ok, (side scrolling, yuck) :)

Well I can see the links in the source code
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;telepath.css&quot;>
<script language=&quot;JavaScript&quot; src=&quot;encounterjs.js&quot;></script>

but when I try to directly access the css or js files I get the same error as Wullie, 403.2 Forbidden...


É

endamcg-logo1b.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top