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:21
Send var from asp to menu_array.js
Poster: alessandrovito
Dated: Thursday October 17 2002 - 14:59:20 BST
I have this problem!
I would like to invie this variable in asp:
<% __at__ 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!!