Welcome to WebmasterWorld Guest from 54.226.209.162

Forum Moderators: open

Message Too Old, No Replies

.js file works locally but not on server

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

New User

5+ Year Member

joined:Dec 10, 2007
posts:26
votes: 0


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

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

New User

5+ Year Member

joined:Dec 10, 2007
posts:26
votes: 0


never mind, I found the fault
12:57 pm on July 9, 2008 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12537
votes: 0


Welcome to WebmasterWorld, djmokoia.

Glad you got it sorted. What was the issue?

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

New User

5+ Year Member

joined:Dec 10, 2007
posts:26
votes: 0


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?!

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

Administrator

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

joined:July 31, 2003
posts:12537
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members