Send var from asp to menu_array.js

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
alessandrovito
Beginner
Beginner
Posts: 1
Joined: Thu Oct 17, 2002 2:50 pm

Send var from asp to menu_array.js

Post by alessandrovito »

I have this problem!
I would like to invie this variable in asp:
<%@ Language=VBScript %>
<%

Dim pagina
pagina = "persone"
%>

to the menu_array,

var page = "<%=pagina%>";

if(page=="persone")
{


addmenu(menu=["persone",,,190,1,,style1,0,"left",effect,0,,,,,,,,,,,
,"Docenti","persone/docenti.asp",,,1
,"Personale tecnico","persone/personale_tec.asp",,,1
,"Personale amministrativo","persone/personale_amm.asp",,,1
])
}

but it doesn't work correctly because the condition of if is always false!!
it seem that the code in asp is not interpreted and page is ugual to "<%=pagina%>" but it could be ugual to "persone"
Please help me!!
:cry:
Post Reply