Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referring to .js files in another folder.

Status
Not open for further replies.

Lotruth

Programmer
May 2, 2001
133
US
I hope no one looks down on me because of this, but I am trying to use a free dhtml script from another website that creates a top menu for my web page. I have a menu.cfm file which contains references to .js files located in the same folder like <script language="javascript" src="menu.js">. It works fine in the folder. I include the menu at the top of my pages using <cfinclude template="menu.cfm">. Again, this works fine as long as i'm in the folder. I have other pages in subfolders like with the menu.cfm file included at the top, but here the menu does not show up because there is no copy of the menu.js file in the names folder. My question is how can I get the menu.cfm file to refer to the menu.js file in the folder instead of looking for a copy of it in names folder? Thanks.
 
Won't he need http:// at the start of the URL? Have a star either way, my brain was muttering things about virtual directories. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top