Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Victor Lopez on Mar 03, 2009 08:34
open dhtmlx forum
dhtml menu not working in firefox

Hi Im using dhtmlxMenu ok in IE but the same menu it's not working properly in Firefox. Only the first element of the first menu option its working onClick.
Hope to make myself understand. Here some sample code:

function doOnload(){
    aMenuBar=new dhtmlXMenuBarObject(document.getElementById('menu'),'100%',24,"");
    //aMenuBar.disableSmartPositioning(true);
    aMenuBar.setOnClickHandler(onButtonClick);
    aMenuBar.setGfxPath("plantillas/estandard/menu/");
    aMenuBar.loadXML("menus/_menu.xml");
    aMenuBar.showBar();
};

----Menu.xml-----

<?xml version="1.0" ?>
- <menu maxItems="13" name="" withoutImages="no">
- <MenuItem name="Proyecto" id="A" withoutImages="no" tooltip="false">
<MenuItem name="Cambiar de proyecto" id="aA" />
<MenuItem name="Gestionar proyectos" id="aB" />
</MenuItem>
- <MenuItem name="Equipos" id="B" withoutImages="no">
<MenuItem name="Gestionar Equipos" id="bA" />
<MenuItem name="Listado de Equipos" id="bB" />
<MenuItem name="Localización de Equipos" id="bC" />
<MenuItem name="Consultas por Equipos" id="bD" />
</MenuItem>
- <MenuItem name="MUPIS" id="C" withoutImages="no">
<MenuItem name="Gestionar MUPIS" id="cA" />
<MenuItem name="Listado de MUPIS" id="cB" />
</MenuItem>
- <MenuItem name="Configuración" id="D" withoutImages="no">
<MenuItem name="Gestión de incidencias" id="dA" />
- <MenuItem name="Control Equipos" id="dB" withoutImages="no">
<MenuItem name="Mantenimiento" id="dC" />
<MenuItem name="Revision" id="dD" />
</MenuItem>
</MenuItem>
</menu>

Only the "Cambiar de Proyecto" menuItem has its functionality.

Thanks in advance.
Answer posted by Alex (support) on Mar 04, 2009 01:39

Hi,

the onClick event should occur for all items. Please, see attached sample. 

Attachments (1)
sample.zip23.05 Kb
Answer posted by Victor Lopez on Mar 04, 2009 02:13

You're right, it works, the problem is that first menu option calls  window.location.href='indice.asp'; and the rest of the options call document.contenido.location.href="paneles.asp?urlcentral=proyecto.asp?id=0"; just changing URL to the another asp page. For some reason this isn't working in firefox.

Thank you for helping.

Answer posted by Alex (support) on Mar 04, 2009 08:21

So..The issue is solved, isn't it ?

Answer posted by Victor Lopez on Mar 04, 2009 08:53

Yes, the menu does its work.

 

Thanks