Hi,
when I use a button to create a window with a function I define, I have some problem with the viewport.
The code is:
function openWin() {
var dhxWins = new dhtmlXWindows();
dhxWins.setImagePath("…/imgs/");
dhxWins.setSkin(“clear_silver”);
var w1 = dhxWins.createWindow(“w1”, 360, 60, 320, 240);
w1.setText(“dhtmlxWindow”);
}
The function openWin is attached to a button.
It opens the window, that works. It closes also the window by clicking on the close button of the window.
However, when I re-click on the button to re-open th window, the button is not clickable anymore and it does not work.
I think the cause is that the viewport is the whole document.body, which prevents accessing the button (z-index issue?).
How can I solve that problem?
Thank you for your help.
Miguel