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: Relative Link to js files
PatrickLosey
Junior Member

Posts: 2
Registered: 1/28/2009
Member Is Offline
posted on 1/28/2009 at 12:53 AM Reply With Quote
Relative Link to js files


I have the code on an index.htm page and it works fine. But I have several pages within an 'about' sub-directory with relative links to all the js files. The index.htm page on the root works fine but none of the pages in the 'about' directory will display the menu.

I have changed the relative links to absolute but that did not help either. Am I missing something? Any help is appreciated.


**********************

index.htm

<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="assets/menu_files/menu.js"></script>
<script language="JavaScript" src="assets/menu_files/items.js"></script>
<script language="JavaScript" src="assets/menu_files/template.js"></script>
<link rel="stylesheet" href="assets/menu_files/menu.css">

</HEAD>

<BODY>
<script language="JavaScript">
<!--
new menu (MENU_ITEMS_XP, MENU_POS_XP);
//-->
</script>


about/history.htm

<link href="../style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../assets/menu_files/menu.js"></script>
<script language="JavaScript" src="../assets/menu_files/items.js"></script>
<script language="JavaScript" src="../assets/menu_files/template.js"></script>
<link rel="stylesheet" href="../assets/menu_files/menu.css">

</HEAD>

<BODY>
<script language="JavaScript">
<!--
new menu (MENU_ITEMS_XP, MENU_POS_XP);
//-->
</script>
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 1/28/2009 at 01:55 AM Reply With Quote

you'll need to use absolute path in configuration variable in menu.js file

var TMenu_path_to_files='/assets/menu_files/';

or whatever is the absolute path to that directory. note that path should start with / or http://
View User's Profile View All Posts By User U2U Member
PatrickLosey
Junior Member

Posts: 2
Registered: 1/28/2009
Member Is Offline
posted on 1/29/2009 at 12:37 AM Reply With Quote

That worked!
Thank you.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Tigra Menu
Product Demonstrations Live Demos:
Traditional Blue
White Steps
Inner HTML
All Together
Frames Targeting
Free Download Free Download
Free Download Menu Builders
Online Builder
Builder for Windows
Product Documentation Documentation:
Documenation Page
Change Log
Menus Comparison Table
Support Forum Support Forum
 
Tigra Menu PRO
Product Demonstrations Live Demos
Alignment & Multimenus
Unlimited Depth
Item sizing and positioning
Inner HTML
Frames, Targeting
Static Positioning
Free Download Menu Builders
Online Builder
Product Documentation Documentation
Documenation Page
Tigra Menu PRO FAQ
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 
Product Page Tigra Menu GOLD
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