ASP Pages

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
doubleH
Beginner
Beginner
Posts: 4
Joined: Mon Jul 29, 2002 10:18 pm
Contact:

ASP Pages

Post by doubleH »

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
phptek
Beginner
Beginner
Posts: 8
Joined: Sun Jul 14, 2002 8:22 am
Location: Perth, Western Australia
Contact:

Post by phptek »

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
doubleH
Beginner
Beginner
Posts: 4
Joined: Mon Jul 29, 2002 10:18 pm
Contact:

ASP Page

Post by doubleH »

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
br0ck
Beginner
Beginner
Posts: 2
Joined: Tue Jul 02, 2002 4:31 pm

ASP Page

Post by br0ck »

Try this:

<script language="JavaScript" type="text/javascript">
<!--#INCLUDE file="menu_array.asp"-->
</script>
doubleH
Beginner
Beginner
Posts: 4
Joined: Mon Jul 29, 2002 10:18 pm
Contact:

Post by doubleH »

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
phptek
Beginner
Beginner
Posts: 8
Joined: Sun Jul 14, 2002 8:22 am
Location: Perth, Western Australia
Contact:

Post by phptek »

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
"No proof of existence is not proof of non-existence."
(Physicist: Stanton T. Friedman on Debunking Ufology)
doubleH
Beginner
Beginner
Posts: 4
Joined: Mon Jul 29, 2002 10:18 pm
Contact:

Post by doubleH »

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
tgaql
Beginner
Beginner
Posts: 5
Joined: Wed Jul 31, 2002 8:59 pm

Post by tgaql »

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>
Post Reply