Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:29

ASP Pages


Poster: doubleH
Dated: Monday July 29 2002 - 22:24:17 BST

First of all ....great menu. I'm having trouble incorporating the menu in to an ASP page. I keep getting 'Internal Server errors - 500'. If I rename the page (test.asp) to test.html it works great. Anyone have any ideas why it won't work. I would also like to use the menu in an include file.

Thanks


Poster: phptek
Dated: Tuesday July 30 2002 - 7:48:20 BST

I don't pretend to be au-fait with ASP - but check out http://www.milonic.co.uk/menu/forum/vie ... =3511#3511

I manged to incoporate the menu into a PHP page, it shouldn;t be too different for ASP - a variable echoed to the page..

cheers
phptek

ASP Page


Poster: doubleH
Dated: Tuesday July 30 2002 - 13:43:15 BST

No that didn't seem to help. If the page is renamed to .html the menu will work. If it is renamed to .asp it will not work

Thanks

ASP Page


Poster: br0ck
Dated: Tuesday July 30 2002 - 20:30:35 BST

Try this:

<script language="JavaScript" type="text/javascript">
<!--#INCLUDE file="menu_array.asp"-->
</script>


Poster: doubleH
Dated: Wednesday July 31 2002 - 2:06:11 BST

Still Nothing. Here is what I am using and I'm just missing something? ....

HTML - Works
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<head>
<title>TABLE.html</title>

<script language=javascript src="menu_array1.js" type=text/javascript></script>
<script language=javascript src="mmenu.js" type=text/javascript></script>

</head>
<body>

<script>PlaceMenu("menu1")</script> &nbsp;</td></tr>

</body>
</html>



ASP - Doesn't Work
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<head>
<title>TABLE.asp</title>
</head>
<script language=javascript src="mmenu.js" type=text/javascript></script>
<script language="JavaScript" type="text/javascript">
<!--#INCLUDE file="/menu_array1.asp"--></script>

<body>

</body>
</html>



Any help would be appreciated.
Thanks


Poster: phptek
Dated: Wednesday July 31 2002 - 3:58:31 BST

Re-arrange the order of your javascript calls -

The menu utilises calls to various javascript functions defined in mmenu.js

<script language=javascript src="mmenu.js" type=text/javascript></script><script language=javascript src="menu_array1.js" type=text/javascript></script>

Put the reference to mmenu.js first.

phptek


Poster: doubleH
Dated: Wednesday July 31 2002 - 16:09:55 BST

That didn't work either....but for some reason it started to work in the ASP page :?: Here is what worked for me.......

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<head>
<title>MENU.asp</title>
</head>

<script language=javascript src="menu_array1.js" type=text/javascript></script>
<script language=javascript src="mmenu.js" type=text/javascript></script>

<body>

</body>
</html>


Thanks to everyone who helped me with this.
hh


Poster: tgaql
Dated: Wednesday July 31 2002 - 23:37:30 BST

it was my understanding that the menu always works best if the JS includes are right after the <body> tag:

<body>
<SCRIPT language=JavaScript src="/Includes/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/Includes/mmenu.js" type=text/javascript></SCRIPT>