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!!
Send var from asp to menu_array.js
-
- Beginner
- Posts: 1
- Joined: Thu Oct 17, 2002 2:50 pm