Welcome to WebmasterWorld Guest from 54.163.40.152

Forum Moderators: open

Message Too Old, No Replies

.js file works locally but not on server

     

djmokoia

8:39 am on Jul 9, 2008 (gmt 0)

5+ Year Member



Hi

I need some assistance with the above. I have a .js file included in an html page as below:

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" >
<title>Untitled</title>
<link rel="stylesheet" type="text/css" href="styles.css" >
<link rel="stylesheet" type="text/css" href="niftyCorners.css">
<script type="text/javascript" src="nifty.js"></script>
<script type="text/javascript">
window.onload=function(){
if(!NiftyCheck())
return;

</script>

</head>

(I have removed some lines that I don't believe are relevant to the problem)

When testing this locally it works cross browser and has the desired effect. However, I have uploaded it to too different hosts and it would seem that the .js file is being ignored. I can't imagine that javascript is not supported by the webhosts...
Any suggestions as to what I have done wrong? If I need to provide more information please let me know.
Thanks

djmokoia

11:28 am on Jul 9, 2008 (gmt 0)

5+ Year Member



never mind, I found the fault

coopster

12:57 pm on Jul 9, 2008 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld, djmokoia.

Glad you got it sorted. What was the issue?

djmokoia

12:50 pm on Jul 11, 2008 (gmt 0)

5+ Year Member



Thanks for the welcome.

bit of a schoolboy error actually. I'm ashamed to admit that a stray upper case letter had found its way into one of the file names! You know how sometimes you can't see the wood for the trees?!

coopster

12:52 pm on Jul 11, 2008 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



LOL!
Yes indeed, you think you're the only "schoolboy" around here? :)
Thanks for the update.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month