Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by patricia on Aug 28, 2008 06:49
open dhtmlx forum
Context Menu

I'm using a contextmenu with images but i cannot see the images just empty zone


<?xml version='1.0' ?>
<menu absolutePosition="auto" mode="popup" maxItems="8">
        <MenuItem name="Add" src="../menu/images/new.gif" height="50" width="100px" id="0_Add"/>    
        <MenuItem name="Delete" src="../menu/images/delete_new.gif" height="50" width="100px" id="0_Delete"/>    
        
</menu>

how to fix the problem?
thank you
Answer posted by Support on Aug 28, 2008 06:57
Most probably the issue cause by incorrect image path, please beware that image of path consist from 
   path_from_images + path_of_each_image
so, if you have used
   menu.setGfxPath("some/folder/");
than  src="../menu/images/new.gif" will be resolved as
   some/folder/../menu/images/new.gif