473,569 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

external javascript file not working on server

232 New Member
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 5078
Dormilich
8,658 Recognized Expert Moderator Expert
are you sure the file exists at the designated place on the server?
Sep 2 '09 #2
kkshansid
232 New Member
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 Recognized Expert Moderator Expert
try to access the file through the navigation bar.
Sep 2 '09 #4
Markus
6,050 Recognized Expert Expert
Can you provide the directory structure please?
Sep 2 '09 #5
kkshansid
232 New Member
@Dormilich
i can access it through navigation baar
Sep 2 '09 #6
Dormilich
8,658 Recognized Expert Moderator Expert
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 New Member
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 New Member
@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
2349
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 to me to hate, also, any event (onload, onchange, ...) instanciated in the element tag itself, like: <input type="text" onkeyup="return...
24
5223
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# Web Form). Is there any other method through which I will be able to access the IFrame Source of the page I am navigating to. Also I need to click...
17
2754
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 language="javascript" src="../scripts/base.js" type="text/javascript" /> } </script> Obviously this would cause n error but this would give you an idea of what...
3
3020
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 have 10000 Options embedded in the SELECT tags, I'm using an External JS file to display them. I'm using these same Options for different SELECT tags,...
1
6550
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 this external script file as <head> <script language="javascript" type="text/javascript" src="Common.js"></script>
1
3310
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 original HTML file, and reference it by "onMouseDown='myFunction();'" in a tag, it works. But if I move the myFunction() definition to an external...
10
2383
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 external file with the "src" attribute, it does not work anymore. Does anybody have an idea if there is any way (be it clean and simple or as a...
3
1322
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 back to the Javascript file(ajax.responseText). When I link the script.js to an external website, such as my blog, the server can't find the file...
0
7700
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.