By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,608 Members | 3,801 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,608 IT Pros & Developers. It's quick & easy.

external javascript file not working on server

100+
P: 232
external javascript file not working on server
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="../include/common.js"></script>
while internal wrking fine
Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript">
  2. .
  3. .
  4. </script>
i changed it to
Expand|Select|Wrap|Line Numbers
  1. <script  language="JavaScript"src="../include/common.js"></script>
but still not working
its working properly at localhost
kindly help to solve my problem
Sep 2 '09 #1
Share this Question
Share on Google+
8 Replies


Dormilich
Expert Mod 5K+
P: 8,639
are you sure the file exists at the designated place on the server?
Sep 2 '09 #2

100+
P: 232
ya i have only three folders
this file is in include folder
other two folder files include this java script file
Sep 2 '09 #3

Dormilich
Expert Mod 5K+
P: 8,639
try to access the file through the navigation bar.
Sep 2 '09 #4

Markus
Expert 5K+
P: 6,050
Can you provide the directory structure please?
Sep 2 '09 #5

100+
P: 232
@Dormilich
i can access it through navigation baar
Sep 2 '09 #6

Dormilich
Expert Mod 5K+
P: 8,639
the link you gave did not provide a valid javascript file… besides that, make sure that the case of the letters matches (some file systems are case sensitive).
Sep 2 '09 #7

Atithi
P: 5
since the first code section given by you is correct in syntax. i think the path to the file is not correct. Note that the path over here is relative .
Sep 2 '09 #8

100+
P: 232
@Dormilich
u were right it was case sensitve at server
Sep 2 '09 #9

Post your reply

Sign in to post your reply or Sign up for a free account.