I am trying to load a dhtml menu with some recordset values, but I don't know how to do this because response.write does not seem to work within a function
this is the static menu below:
What i would like to do is replace "brooches" with <%=rsJewlery("category")%> and jewlery.asp?cat=brooches with
"jewlery.asp?cat=" <%=rsJewlery("category")%>
any help is appeciated.
this is the static menu below:
Code:
function mmLoadMenus() {
if (window.mm_menu_1024161616_0) return;
window.mm_menu_1024161616_0 = new Menu("root",119,16,"Arial, Helvetica, sans-serif",12,"#999999","#CCCCCC","#FFFFFF","#FFFFFF","left","middle",2,0,200,-5,7,true,true,true,0,true,true);
mm_menu_1024161616_0.addMenuItem("brooches","location='jewlery.asp?cat=brooches'");
mm_menu_1024161616_0.addMenuItem("necklaces","location='jewlery.asp?cat=necklaces'");
mm_menu_1024161616_0.addMenuItem("earrings","location='jewlery.asp?cat=earrings'");
mm_menu_1024161616_0.addMenuItem("bracelets","location='jewlery.asp?cat=bracelets'");
mm_menu_1024161616_0.addMenuItem("rings","location='jewlery.asp?cat=rings'");
mm_menu_1024161616_0.addMenuItem("hair accessories","location='jewlery.asp?cat=hair_accessories'");
What i would like to do is replace "brooches" with <%=rsJewlery("category")%> and jewlery.asp?cat=brooches with
"jewlery.asp?cat=" <%=rsJewlery("category")%>
any help is appeciated.