473,395 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

external javascript file not working on server

232 100+
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
8 5073
Dormilich
8,658 Expert Mod 8TB
are you sure the file exists at the designated place on the server?
Sep 2 '09 #2
kkshansid
232 100+
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
8,658 Expert Mod 8TB
try to access the file through the navigation bar.
Sep 2 '09 #4
Markus
6,050 Expert 4TB
Can you provide the directory structure please?
Sep 2 '09 #5
kkshansid
232 100+
@Dormilich
i can access it through navigation baar
Sep 2 '09 #6
Dormilich
8,658 Expert Mod 8TB
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
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
kkshansid
232 100+
@Dormilich
u were right it was case sensitve at server
Sep 2 '09 #9

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

Similar topics

5
by: knocte | last post by:
Hello. I am a web developer very worried about "bloat code" and "languages mixture". So, since some time, I always try to avoid completely the use of javascript in XHTML/HTML files. This leads...
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
17
by: CES | last post by:
All, I was wondering if their is a way of loading an external script fill from within a script?? <script language="javascript" type="text/javascript"> function test(var){ <script...
3
by: sewerized | last post by:
Hello all, I'm having a problem with a user preferences form I'm creating. I want to use dynamic dropdown SELECT boxes for this so my page doesn't get cluttered with 100000 links. Since I...
1
by: anjud | last post by:
I have an external javascript file which contains a global variable - arrNames var arrNames=new Array(); arrNames="FirstName"; arrNames="LastName"; In my html page I had given the path of...
1
by: Brian Kendig | last post by:
I've got some questions about using an external javascript file, included via '<script type="text/javascript" src="mycode.js" ></ script>': (1) If I define a function "myFunction()" in the...
10
by: Stefan Weber | last post by:
Hi, I'm trying to access the JavaScript code contained in a <scripttag via its "text" attribute. This works well, if the code is embedded in the HTML page. However, when the code is in an...
3
by: RoryClapham | last post by:
Hi, I'm currently working on a project that has a script file (script.js) which uses an XMLHttpRequest to handle a local file (script.php). It opens the file, executes and then returns a value...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.