Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Azeez on Jun 03, 2009 05:01
open dhtmlx forum
How to use DHTMLXMenu as my popup anywhere on page

hi,
In my application i am using a lot of dhtmlx objects. i want to use dhtmlx menu as the popup when i right click on my page.
i tried enclosing all components with a div tag and pass that div as the context of my xmenu. But the pproblem is that all my components dont fill the page fully and so i get my menu only on right click of any component . I dont get it while right click on an empty space. pls let me know how can i make my xmenu appear on right click anywhere on the page. Basically i dont want the default internet exploroer menu. i want my customised xmenu.
Answer posted by Support on Jun 03, 2009 05:41
a) add next style to the page
<style>
      html, body {
              height:100%;
      }
</style>
b) attach context menu to the body, by using
     document.body.id="some_id";
     menu.addContextZone("some_id")