Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Menues dont show on pages in folders
ricW
Junior Member

Posts: 2
Registered: 10/16/2007
Member Is Offline
posted on 10/16/2007 at 03:40 PM Reply With Quote
Menues dont show on pages in folders


I have had to move several pages on our site into sub-folders. The links updated properly but the menues do not show on any of the pages.

e.g. -
In original location, javascript in the meta tag reads:
src="menu_files/menu_items.js"

In new folder, it reads
src="../menu_files/menu_items.js"
reflecting a move to the new folder

Is there some other part of the javascript that must be changed to accommodate the moved pages.

Rick W.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 10/16/2007 at 05:04 PM Reply With Quote

check path variable inside menu.js
If you use the menu from different levels of the file system hierarchy then use absolute path there.
View User's Profile View All Posts By User U2U Member
ricW
Junior Member

Posts: 2
Registered: 10/16/2007
Member Is Offline
posted on 10/16/2007 at 06:30 PM Reply With Quote

All pages were originally created in one folder. I have had to distribute most, but not all, of them to sub folders one level down. It was not clear from your answer how I would use an absolute path. Which path in what file?
The paths in the head of each page were automatically changed by Dreamweaver and appear to be correct. This includes the path to menu.js, but not the path (var TMenu_path_to_files='menu_files/') within menu.js.

If you make a copy of any page and move it to any subfolder you will likely see that the menu/s do not show up when you display the moved page in a browser.

Rick W.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 10/23/2007 at 07:40 PM Reply With Quote

All pages share the same copy of menu.js thus the variable inside menu.js (TMenu_path_to_files) must contain correct path regardless of where menu.js is referenced from. Absolute path works fine for that i.e:
var TMenu_path_to_files='http://www.yourdomain.com/javascripts/menu_files/
var TMenu_path_to_files='/javascripts/menu_files/
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Functionality demos Functionality demos
Multiple
Cross-framed
Select-boxes
Effects
Design demos Design demos
Icons & arrows
Idea!
Hi there!
Matrix
MS Style
XP Style
Dots
3D-Buttons
Product Documentation Documentation
Documenation Page
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004