Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard Hunter on Aug 03, 2009 14:46
open dhtmlx forum
dhxWindow refreshes on minimize/maximize

Hi

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.
Answer posted by Alex (support) on Aug 04, 2009 02:04

Hello,

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

Answer posted by Richard Hunter on Aug 04, 2009 03:24
Hi,

Thanks for your help. You can view this at http://www.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("&amp;&amp;", "&amp;", str_replace("&", "&amp;", $res[5])); ?>");
    parent.dhxLayout.dhxWins.window("lesson").center();
    parent.dhxLayout.dhxWins.window("lesson").attachURL("/cm1.php?studentlogin=guest&studentpass=guest&l=<? echo $_GET['lesson']; ?>");
    parent.dhxWins.window("lesson").progressOn();
}


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

<?
session_start();
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']) {
$lesson=$_GET['l'];
}
if($_POST['l']) {
$lesson=$_POST['l'];
}
?>
<style type="text/css">
    html {
        height: 100%;
        overflow: hidden;
    }  
    #flashcontent {
        height: 100%;
    }
    body {
        height: 100%;
        margin: 0;
        padding: 0;
    }
</style>
<script src="/scripts/swfobject_modified.js" type="text/javascript"></script>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
    <param name="movie" value="/conquermaths.swf?param1=<?php echo $username; ?>&param2=<?php echo $password; ?>&param3=<?php echo $lesson; ?>" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="../../scripts/expressInstall.swf" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="/conquermaths.swf?param1=<?php echo $username; ?>&param2=<?php echo $password; ?>&param3=<?php echo $lesson; ?>" width="100%" height="100%">
      <!--<![endif]-->
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="6.0.65.0" />
      <param name="expressinstall" value="/scripts/expressInstall.swf" />
      <div>
        <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
      </div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object>
  <script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>

Answer posted by Support on Aug 04, 2009 03:34
Hello,

Right, issue is reproduced.
Could you please provide completed demo (just dhxwin+swf) to reproduce the issue locally?
Answer posted by Richard Hunter on Aug 04, 2009 04:32
Hi,

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

Richard

Attachment has been deleted as you asked (support).  

Answer posted by Support on Aug 04, 2009 04:48
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