Categories | Question details Back To List | ||
How to pass value a "window.location"? good afternoon I do not speak much English, but expect your help. I have this code: <script> window.dhx_globalImgPath="./images/menu_top/"; var links = new Array('Hola','que','tal'); function onChangeFunc(area) { var valor=z.getActualValue();//rescue data for combobox if (valor==1){ if (area=="ingreso") window.location=links[1]; if (area=="consulta") window.location=links[2]; } } </script> <link rel="STYLESHEET" type="text/css" href="./css/menu_top/dhtmlxcombo.css"> <link rel="STYLESHEET" type="text/css" href="./css/menu_top/menu.css"> <script src="./js/menu_top/dhtmlxcommon.js"></script> <script src="./js/menu_top/dhtmlxcombo.js"></script> <script src="./js/menu_top/dhtmlxcombo_extra.js"></script> <script src="./js/menu_top/menu_top.js"></script> </head> <body> <div id="contenido"> <ul id="tabs4"> <li id="area"></li> <li><a href="javascript:onChangeFunc('importar')"><span>Importar</span></a></li> </ul> </div> <script> var z=new dhtmlXCombo("area","area",160,"image"); z.setDefaultImage("./images/menu_top/260.png"); z.readonly(true); z.addOption([[1,"Numero"],[2,"Dato"],[3,"Lugar"],[4,"Año"]]); </script> </body> </html> I need to pass value this combobox, in the line "window.location=links[1];" for this conserve selected in "id=area" Thank's for your time.. Answer posted by Support on Jul 25, 2008 02:28 The provided code looks correct. But we do not completely understand the issue. Could you please provide more details about it ? |