Problem with Menu Sample 27

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Problem with Menu Sample 27

Post by darkcircuituk »

I have been trying to get menu sample 27 working for the last 2 days. Do I need to place all the files on a server, because I tried getting the menu to work locally and failed miserably. Can you provide me some help plz?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The most common problem with trying to get a page to work both locally and on a server is that the local site is not set up exactly the same as the server is. Therefore, pathnames do not match and, typically, the JS calls to the menu code files fail. Hence - no menu.

You might try using full pathnames for the calls and see if that helps (assuming you've placed the menu code on the server).
John
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Didn't work

Post by darkcircuituk »

I have tried just applying the right click menu locally and including all the js files required in the same directory as the page I am trying the script on. I have added the required code to the html page that I require the menu to appear on, and still nothing. Could it be that the menu sample 27 just doesn't work? :cry:
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

The problem was a bug in the menu delivery system.

It wasn't add the <SCRIPT> reference to the contextmenu.js file in the download.

Fixed now so if you download the menu again, should see the context menu appear.

Cheers
Andy
darkcircuituk
Super Advanced
Super Advanced
Posts: 49
Joined: Sat Aug 21, 2004 2:57 pm

Eureka!!!

Post by darkcircuituk »

In the end, I just copied the sample code that was provided on ur website into the menu_data.js and that fixed my problem. Thanks for your advice though :) its appreciated :D
Post Reply