Solved

Javascript not seeing script file

Posted on 2011-03-01
2
153 Views
Last Modified: 2012-06-27
All:
In a web page I am referencing a file called "scripts/ttb.js" which I have placed in the scripts folder in the home directory. For some reason the web is not "seeing" the ttb.js file as it will not run when the page loads. Also I am using MS Visual Web Developer and it underlines the "scripts/ttb.js" with an error that states the file can't be found. Can anyone help?
0
Comment
Question by:leeskelton83
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 250 total points
ID: 35010714
all you need to be carefull is from where you are accessing it. try
/scripts/ttb.js
0
 
LVL 3

Author Comment

by:leeskelton83
ID: 35010799
Pretty sure I did that but I will check it and get back to you. It may be a few hours. Thanks.....
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question