dhtmlxPopUp in toolbar

Hi,
We are using dhtmlxPopup in our product.
I have a doubt that is can i show dhtmlxpopup when i focused input box in dhtmlxtoolbar?

You have given samples on button click but i need for input box!

Plz reply me

Thanks in advance,
Naresh Adla

Hi
Try something like this:

[code]toolbar = new dhtmlXToolbarObject(“parentId”);
toolbar.setIconsPath(’…/dhtmlxToolbar/codebase/images/’);
toolbar.addInput(‘inptlb’, 1, ‘’, 200);
inp = toolbar.getInput(‘inptlb’);

    myPop = new dhtmlXPopup();
    myPop.setSkin("dhx_skyblue");
    myPop.attachHTML(inp.value);
    var x = getAbsoluteLeft(inp);
    var y = getAbsoluteTop(inp);
    var w = inp.offsetWidth;
    var h = inp.offsetHeight;
    myPop.attachHTML("popup");

    inp.onfocus = function(){
        myPop.show(x, y, w, h);
    }
    inp.onblur = function(){
        myPop.hide();
    }[/code]

getInput method not working!

saying object doesnt support this method: getInput

Locally it works fine, because getInput is a method of toolbar:
docs.dhtmlx.com/doku.php?id=dhtm … getinput&s[]=getInput

See attached demo
toolbar+popup.rar (65.9 KB)