Dear Friends,
I want to create a pop up menu that contains titles of 10 articles.
and these titles has to be extracted from an Sql Table.
the POP up menu is done in javascript:
function mmLoadMenus()
How can I pass the array containing the titles (extracted by a query) to be added to the menu done in a javascript function.
function mmLoadMenus() {
if (window.mm_menu_1117105932_0) return;
window.mm_menu_1117105932_0 = new Menu("root",91,18,"Arial, Helvetica, sans-serif",12,"#313031","#00659C","#E7E3E7","#FFFFFF","left","middle",3,0,600,-5,7,true,true,true,0,true,true);
mm_menu_1117105932_0.addMenuItem("New item1","window.open('1.htm', '_parent');");
mm_menu_1117105932_0.addMenuItem("New item2","window.open('2.htm', '_parent');");
mm_menu_1117105932_0.fontWeight="bold";
mm_menu_1117105932_0.hideOnMouseOut=true;
mm_menu_1117105932_0.bgColor='#FFFFFF';
mm_menu_1117105932_0.menuBorder=0;
mm_menu_1117105932_0.menuLiteBgColor='#FFFFFF';
mm_menu_1117105932_0.menuBorderBgColor='#FFFFFF';
mm_menu_1117105932_0.writeMenus();
}
so instead of New item1 and New item2, I have to add the result of a query to be added and shown in the POP UP Menu
Any Help Please.......