Leeus
01-11-2003, 01:14 PM
I posted this in the Javascript forum but you guys would probably know better! I have this JS function, it is a jump menu, and in this I want to set an ASP session variable.
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+"report.asp?User="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
i want to set that variable to selObj.options[selObj.selectedIndex].value, I have never mixed asp/js before so am unaware of any pitfalls, I still want the page to do the redirect but set the variable first.
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+"report.asp?User="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
i want to set that variable to selObj.options[selObj.selectedIndex].value, I have never mixed asp/js before so am unaware of any pitfalls, I still want the page to do the redirect but set the variable first.