DHTMLX Docs & Samples Explorer

show()

shows the pop-up window.

The method can be called in 2 ways:

  1. show(id) - shows the pop-up window near the item with the specified ID. The variant is used when the pop-up window attached to a form or toolbar
    • id - (string, integer) the item id. For radio buttons you should specify [id,value] pair
  2. show(left, top, width, height) - shows the pop-up window near the specified area
    • left - (integer) the left offset of the pop-up window
    • top - (integer) the top offset of the pop-up window
    • width - (integer) the width of the pop-up window
    • height - (integer) the height of the pop-up window
var  myPop = new dhtmlXPopup(...);
 
var x = getAbsoluteLeft(myInput); //where 'myInput' is some input declared on the page
var y = getAbsoluteTop(myInput);
var w = myInput.offsetWidth;
var h = myInput.offsetHeight;
myPop.show(x,y,w,h);

Related resources