dhxWindow refreshes on minimize/maximize


I’ve got a dhxWindow which opens up a Flash application. When the window is minimized then maximized, the Flash app reloads from scratch. Is there any way to stop this happening?

Thanks for your help.


could you please provide the complete sample that allows to recreate the issue.


Thanks for your help. You can view this at conquermaths.com/m/students/member.php - to see what happens, open up a lesson in the last stage of the tree grid and select ‘Load Lesson’ in the right hand pane.

The function that opens the window is as follows:

function lesson() {
    var addWindow = parent.dhxLayout.dhxWins.createWindow(“lesson”, 100,10,((screen.availHeight*(4/3).8)-20),(screen.availHeight.8));
    parent.dhxLayout.dhxWins.window(“lesson”).setText(“<? echo str_replace("&&", "&", str_replace("&", "&", $res[5])); ?>”);
    parent.dhxLayout.dhxWins.window(“lesson”).attachURL(“/cm1.php?studentlogin=guest&studentpass=guest&l=<? echo $_GET['lesson']; ?>”);

This is the code on the page which is displayed (cm1.php):

if($_SESSION['studentlogin']) {
$username = $_SESSION['studentlogin'];
$password = $_SESSION['studentpass'];
} else {
if($_GET['studentlogin']) {
$username = $_GET['studentlogin'];
$password = $_GET['studentpass'];
} else {
$username = $_REQUEST['studentlogin'];
$password = $_REQUEST['studentpass'];
if($_GET['l']) {
if($_POST['l']) {

    html {
        height: 100%;
        overflow: hidden;
    #flashcontent {
        height: 100%;
    body {
        height: 100%;
        margin: 0;
        padding: 0;



Content on this page requires a newer version of Adobe Flash Player.





Right, issue is reproduced.
Could you please provide completed demo (just dhxwin+swf) to reproduce the issue locally?


I hope these are the files you need, if you need anything else, please let me know.

I would appreciate it if you could make sure that these files aren’t permanently available on your knowledge base.

Many Thanks


Attachment has been deleted as you asked (support).

Unfirtunately this is not completed demo.
We need demo which can reproduce issue locally without adding additional files.
Please make completed demo. You can send it directly to support@dhtmlx.com