Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Miguel Lopez on May 10, 2008 12:28
open dhtmlx forum
dhtmlxwindow: viewport issue

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
Answer posted by Support on May 15, 2008 07:54

Please try to use version attached to next thread

http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=2762&ssr=yes&s=dhtmlxwindow

If problem still occurs for you - please provide any kind of sample where it can be reconstructed ( you can send it directly to support@dhtmlx.com )