Hello,
Is there a way to reference the current dhtmlxwindow from the code loaded inside it ?
For exemple I need the size (width & height) for the current dhtmlxwindow IN the current dhtmlxwindow.
Thanks in advance
@++
JC
Hello,
Is there a way to reference the current dhtmlxwindow from the code loaded inside it ?
For exemple I need the size (width & height) for the current dhtmlxwindow IN the current dhtmlxwindow.
Thanks in advance
@++
JC
Hello,
the active window can be got by getTopmostWindow() method:
var win = dhxWins.getTopmostWindow();
If you are going to get a window from an iframe, you need to call this code with parent:
var win = parent.dhxWins.getTopmostWindow();
Hello Alexandra,
Thanks for this answer, but I have several windows on screen and inactive windows can refresh themselves.
Is there not another method to reference the correct window ?
Thanks for your help
@++
JC
Hello,
what is the content of a window ? We need to details, possibly an example of usage.
Yes, it is possible. Put this script in your iframed page to see its dhtmlxWindow idβ¦
alert(window.frameElement.parentElement.parentElement._winId);