This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Calling JS from a folder. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Calling JS from a folder." Watch "Calling JS from a folder." New topic
Author

Calling JS from a folder.

Kevin McNally
Greenhorn

Joined: Sep 24, 2003
Posts: 6
I have an html site using a Javascript menu, and I want to call the javascript from a different folder so that any changes that need to be made to the menu only need to be done once.

I want to call it from a folder entitled "menu"
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24059
    
  13

Note that JavaScript and Java are two different things. Moving this to HTML/JavaScript forum.


[Jess in Action][AskingGoodQuestions]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
you just do it like a image source
src="thefolder/theFile.js"
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling JS from a folder.
 
Similar Threads
Send requsts to a php file using AJAX
how to stop my return string from being encoded?
Javascript not working in Netscape 7.01
Passing workStation time to a servlet?
how to call js file from jsp