aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Calling JS from a folder. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 24187
    
  34

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: 15376
    
    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.