Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by patricia on Aug 28, 2008 07:37
open dhtmlx forum
context menu

still having the problem

my code :

in js file

aMenu.menu.setGfxPath("menu/images/");

aMenu.menu.loadXML("/menu/menu.xml");

 

my xml file

<?xml version='1.0' ?>

<menu absolutePosition="auto" mode="popup" maxItems="8">

<MenuItem name="Add" src="menu/images/.../menu/images/new.gif" height="50" width="100px" id="0_Add"/>

<MenuItem name="Delete" src="menu/images/.../menu/images/delete_new.gif" height="50" width="100px" id="0_Delete"/>

</menu>

 

images are in C:\Apachev2\tomcat6\webapps\ROOT\menu\images

 

Answer posted by Support on Aug 28, 2008 08:02
If you are using 
    aMenu.menu.setGfxPath("menu/images/");
The path need to be set as 
     <MenuItem name="Add" src="new.gif" 

The final path, built from both parts, will be a correct one
     menu/images/new.gif