Location of Javascript menu files not working anymore

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mivilleb
Beginner
Beginner
Posts: 2
Joined: Wed May 21, 2003 6:35 pm

Location of Javascript menu files not working anymore

Post by mivilleb »

Hi,

I tested version 4 of the menu. With the older versions I was able to specify the src of the js files using a url or relative directory location in the <SCRIPT> tag.

This used to work (in head or in body)

<SCRIPT language=JavaScript src="http://website/menu/milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="http://website/menu//table_data.js" type=text/javascript></SCRIPT>

or:

<SCRIPT language=JavaScript src="menu/milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="menu/table_data.js" type=text/javascript></SCRIPT>


With version 4, unless the html page calling the menu is in the same directory as the js files, the menu does not show up.

Any variable I need to change?

Thank you for any help,

Bernard
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Take a look at milonic_src.js.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Yep, milonic_src.js contains a variable called scriptpath where you specify the location of the files, by default it's the current path.

This may change on the actual production release but I'm sure how yet.

Cheers
Andy
Post Reply