homepage Welcome to WebmasterWorld Guest from 23.20.61.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
.js file works locally but not on server
djmokoia

5+ Year Member



 
Msg#: 3694155 posted 8:39 am on Jul 9, 2008 (gmt 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

 

djmokoia

5+ Year Member



 
Msg#: 3694155 posted 11:28 am on Jul 9, 2008 (gmt 0)

never mind, I found the fault

coopster

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



 
Msg#: 3694155 posted 12:57 pm on Jul 9, 2008 (gmt 0)

Welcome to WebmasterWorld, djmokoia.

Glad you got it sorted. What was the issue?

djmokoia

5+ Year Member



 
Msg#: 3694155 posted 12:50 pm on Jul 11, 2008 (gmt 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?!

coopster

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



 
Msg#: 3694155 posted 12:52 pm on Jul 11, 2008 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved